---
title: "10 DB2 Tricky Interview Questions on Isolation Levels"
description: "Isolation levels in DB2 explained possible interview questions. You can prepare these questions before you attend interviews."
url: https://srinimf.com/2016/01/20/take-advantage-of-db2-v11-isolation-levels-read-these-10-tips/
date: 2016-01-20
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2016/01/isolation-levels-db2.jpg?fit=1200%2C900&ssl=1
categories: ["DB2"]
tags: ["DB2 Interview Questions", "DB2 Isolation Levels"]
type: post
lang: en
---

# 10 DB2 Tricky Interview Questions on Isolation Levels

List of DB2 V11 Interview Questions on isolation levels:

**1) What is default isolation level?**

A) If we do not mention isolation level. DB2 consider it as RR. The package Isolation level overrides other isolation level like Result table isolation level and PLAN BIND isolation level.

**2) What is the best way to specify the result table is READ ONLY?**

A) Use FOR READ ONLY in select statement of Cursor declaration

**3) Package Isolation level is “CS”, then will that apply to all the SQL statements under this package?**

A) Yes, it applies to all SQL statements of this package

**4) What are the different locks you can give SQL declaration of cursor?**

A)USE AND KEEP EXCLUSIVE LOCKS

USE AND KEEP UPDATE LOCKS

USE AND KEEP SHARE LOCKS

**Here’s more on** [DB2-isolation-level-in-programs](https://click.linksynergy.com/deeplink?id=89/9NHMn6Os&mid=39197&u1=srinimf&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Fcomplete-db2-on-cobol-mainframe%2F).

**5) Best ways to choose Isolation level?**

A) Bind most applications with the [ISOLATION(CS)](https://srinimf.com/2015/03/17/db2-four-isolation-levels-rr-rs-cs-ur/) and CURRENTDATA(NO) options. These options enable DB2 to release locks early and avoid taking locks in many cases. ISOLATION(CS) typically enables DB2 to release acquired locks as soon as possible.

The CURRENTDATA(NO) typically enables DB2 to [acquire the](https://srinimf.com/2015/09/02/3-key-points-of-acquire-bind-option-in-db2/) fewest number of locks, for better lock avoidance. When you use ISOLATION(CS) and CURRENTDATA(NO), consider using the SKIPUNCI subsystem parameter value to YES so that readers do not wait for the outcome of uncommitted inserts.

**6) What is the default order of ISOLATION levels?**

A)Cursor stability (CS)

Uncommitted read (UR)

Read stability (RS)

Related[9 Top Searched Links in 2020](https://srinimf.com/2021/02/12/9-top-searched-links-in-2020/)

Repeatable read (RR)

**7) What is ISOLATION Level CS?**

A) The ISOLATION (CS) or cursor stability option allows maximum concurrency with data integrity. Under the ISOLATION (CS) option, a transaction holds locks only on its uncommitted changes and on the current row of each of its cursors.

**8) What is ISOLATION Level UR?**

A) The ISOLATION (UR) or uncommitted read option allows an application [to read](https://srinimf.com/2017/01/15/the-best-db2-lock-technic-saves-valuable-resources/) while acquiring few locks, at the risk of reading uncommitted data. UR isolation applies only to the following read-only operations: SELECT, SELECT INTO, or FETCH from a read-only result table.

**9) What is ISOLATION Level  RS?**

A) The ISOLATION (RS) or read stability option enables an application to read the same pages or rows more than once and prevents updates or deletes to qualifying rows by other processes. However, other applications can insert or update rows that did not satisfy the search condition of the original application.

**10) What is ISOLATION Level RR?**

A) The ISOLATION (RR) or repeatable read option allows the application to read the same pages or rows more than once without allowing any update, insert, or delete operations by other processes. All accessed rows or pages are locked, even if they do not satisfy the predicate. Under the ISOLATION (RR) option, the data that an application references cannot be updated by any other applications before the application reaches a commit point.

Related Posts

- [DB2 Concurrency: Top Interview Questions Unlock now](https://srinimf.com/2015/05/06/db2-concurrency-and-locking-interview-questions/)DateMay 6, 2015
- [20 Neat DB2 Interview Questions and Answers](https://srinimf.com/2023/08/14/20-exclusive-db2-interview-questions-to-read-now/)DateAugust 14, 2023
- [DB2 Four Isolation Levels RR, RS, CS, UR- Best examples](https://srinimf.com/2015/03/17/db2-four-isolation-levels-rr-rs-cs-ur/)DateMarch 17, 2015

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2016%2F01%2F20%2Ftake-advantage-of-db2-v11-isolation-levels-read-these-10-tips%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2016%2F01%2Fisolation-levels-db2.jpg%3Ffit%3D1200%252C900%26ssl%3D1&description=10%20DB2%20Tricky%20Interview%20Questions%20on%20Isolation%20Levels)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2016/01/20/take-advantage-of-db2-v11-isolation-levels-read-these-10-tips/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2016/01/20/take-advantage-of-db2-v11-isolation-levels-read-these-10-tips/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2016/01/20/take-advantage-of-db2-v11-isolation-levels-read-these-10-tips/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2016/01/20/take-advantage-of-db2-v11-isolation-levels-read-these-10-tips/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%2010%20DB2%20Tricky%20Interview%20Questions%20on%20Isolation%20Levels&body=https%3A%2F%2Fsrinimf.com%2F2016%2F01%2F20%2Ftake-advantage-of-db2-v11-isolation-levels-read-these-10-tips%2F&share=email)
-

### Like this:

Like Loading…