Free Oracle 1Z0-071 Practice Questions: Manage Data in Different Time Zones
Practice 10 free Oracle Database SQL (Oracle 1Z0-071) questions on Manage Data in Different Time Zones, with answers, explanations, and the IT Mastery next step.
Try the IT Mastery web app for a richer interactive practice experience with mixed sets, timed mocks, topic drills, explanations, and progress tracking.
Topic snapshot
| Field | Detail |
|---|---|
| Practice target | Oracle 1Z0-071 |
| Topic area | Manage Data in Different Time Zones |
| Blueprint weight | 4% |
| Page purpose | Focused sample questions before returning to mixed practice |
How to use this topic drill
Use this page to isolate Manage Data in Different Time Zones for Oracle 1Z0-071. Work through the 10 questions first, then review the explanations and return to mixed practice in IT Mastery.
| Pass | What to do | What to record |
|---|---|---|
| First attempt | Answer without checking the explanation first. | The fact, rule, calculation, or judgment point that controlled your answer. |
| Review | Read the explanation even when you were correct. | Why the best answer is stronger than the closest distractor. |
| Repair | Repeat only missed or uncertain items after a short break. | The pattern behind misses, not the answer letter. |
| Transfer | Return to mixed practice once the topic feels stable. | Whether the same skill holds up when the topic is no longer obvious. |
Blueprint context: 4% of the practice outline. A focused topic score can overstate readiness if you recognize the pattern too quickly, so use it as repair work before timed mixed sets.
Sample questions
These are original IT Mastery practice questions aligned to this topic area. They are not official Oracle questions, copied live-exam content, or exam dumps. Use them to preview question style and explanation depth before continuing with topic drills, mixed sets, and timed mocks in IT Mastery.
Question 1
Topic: Manage Data in Different Time Zones
A reporting session time zone is set to Asia/Tokyo, while the database server time zone is UTC. A query must return the current date and time for the session time zone as datatype TIMESTAMP, with no time-zone field. Which statement correctly applies the Oracle SQL rule?
Options:
A.
CURRENT_TIMESTAMPreturns a database-time-zoneTIMESTAMP WITH TIME ZONE.B.
LOCALTIMESTAMPreturns a session-localTIMESTAMPwith no time-zone field.C.
CURRENT_DATEreturns a session-localTIMESTAMPwith no time-zone field.D.
CURRENT_TIMESTAMPreturns a session-localTIMESTAMPwith no time-zone field.
Best answer: B
Explanation: LOCALTIMESTAMP is the direct match because it returns the current date and time in the session time zone as datatype TIMESTAMP. CURRENT_TIMESTAMP also uses the session time zone, but its datatype includes time-zone information, and CURRENT_DATE returns DATE.
In Oracle, these current-datetime expressions differ mainly by return datatype, even though they are session-aware. CURRENT_DATE returns a DATE, so it reflects the session time zone but is not a TIMESTAMP. CURRENT_TIMESTAMP returns TIMESTAMP WITH TIME ZONE, also based on the session time zone. LOCALTIMESTAMP uses the session time zone too, but returns plain TIMESTAMP, so the datatype has no time-zone field.
For a requirement that explicitly asks for session-local current date and time as TIMESTAMP without time-zone information, LOCALTIMESTAMP is the correct choice. The closest distractor is CURRENT_TIMESTAMP, which has the right time-zone behavior but the wrong datatype.
CURRENT_DATEconfusion fails becauseCURRENT_DATEreturnsDATE, notTIMESTAMP.- Database time-zone mix-up fails because
CURRENT_TIMESTAMPuses the session time zone, not the database server time zone. - Datatype mix-up fails because
CURRENT_TIMESTAMPreturnsTIMESTAMP WITH TIME ZONE, not plainTIMESTAMP.
Question 2
Topic: Manage Data in Different Time Zones
Which statement about Oracle current-datetime expressions is correct?
Options:
A.
LOCALTIMESTAMPreturnsTIMESTAMP WITH TIME ZONE, whileCURRENT_TIMESTAMPreturnsTIMESTAMPwithout time zone.B.
CURRENT_TIMESTAMPuses the database time zone, butLOCALTIMESTAMPuses the session time zone.C.
CURRENT_DATEandLOCALTIMESTAMPboth returnDATE, whileCURRENT_TIMESTAMPreturnsTIMESTAMP.D.
CURRENT_DATEreturnsDATEin the session time zone;CURRENT_TIMESTAMPreturnsTIMESTAMP WITH TIME ZONE;LOCALTIMESTAMPreturnsTIMESTAMPin the session time zone.
Best answer: D
Explanation: In Oracle, these expressions are evaluated in the session time zone, not the database time zone. The key datatype difference is that CURRENT_TIMESTAMP includes time-zone information, LOCALTIMESTAMP does not, and CURRENT_DATE returns the older DATE datatype.
The core concept is separating datatype from time-zone behavior. CURRENT_DATE returns an Oracle DATE, which includes date and time to the second but no fractional seconds or time-zone datatype. CURRENT_TIMESTAMP returns TIMESTAMP WITH TIME ZONE, so its value carries time-zone offset information. LOCALTIMESTAMP returns TIMESTAMP, which keeps fractional seconds but not a time-zone datatype.
All three expressions are based on the session time zone when evaluated. That is why confusing them with DBTIMEZONE leads to the wrong conclusion. A useful shortcut is:
CURRENT_DATE→DATECURRENT_TIMESTAMP→TIMESTAMP WITH TIME ZONELOCALTIMESTAMP→TIMESTAMP
The closest trap is assuming LOCALTIMESTAMP behaves exactly like CURRENT_TIMESTAMP; they use the same session context but return different datatypes.
- Datatype mix-up fails because
CURRENT_DATEdoes not returnTIMESTAMP, andLOCALTIMESTAMPis not aDATE. - Wrong time-zone source fails because
CURRENT_TIMESTAMPis session-based, not based on the database time zone. - Offset confusion fails because
LOCALTIMESTAMPdoes not include time-zone data in its datatype; that is the role ofCURRENT_TIMESTAMP.
Question 3
Topic: Manage Data in Different Time Zones
An application must store a follow-up time exactly 90 minutes after the user’s current session timestamp, and the result must keep the session time zone. Which Oracle SQL expression correctly applies this rule?
Options:
A.
CURRENT_TIMESTAMP + INTERVAL '90' MINUTEB.
CURRENT_TIMESTAMP + INTERVAL '1-30' HOUR TO MINUTEC.
CURRENT_TIMESTAMP + 90D.
CURRENT_TIMESTAMP + INTERVAL '90' DAY
Best answer: A
Explanation: Use an INTERVAL when adding time to a TIMESTAMP value in Oracle SQL. CURRENT_TIMESTAMP + INTERVAL '90' MINUTE correctly adds 90 minutes and keeps the result as a time-zone-aware timestamp.
Oracle uses INTERVAL arithmetic for TIMESTAMP values. Because CURRENT_TIMESTAMP returns a TIMESTAMP WITH TIME ZONE, adding a day-to-second interval such as INTERVAL '90' MINUTE is the correct rule when you need a result 90 minutes later. The result remains a timestamp that includes time zone information.
A plain number is not the correct way to add minutes to a TIMESTAMP; numeric date arithmetic applies to DATE values as days. Also, interval literals must match Oracle’s required format for their declared interval type. For 90 minutes, the simplest valid expression is the minute interval literal.
The key takeaway is: for TIMESTAMP plus or minus elapsed time, use the appropriate INTERVAL type and unit.
- Plain number fails because
TIMESTAMParithmetic requires anINTERVAL, not a numeric day value. - Wrong literal format fails because
HOUR TO MINUTEliterals use a time format such as1:30, not1-30. - Wrong unit fails because adding 90 days is not the same as adding 90 minutes.
Question 4
Topic: Manage Data in Different Time Zones
A developer changes the session time zone and then runs this query:
ALTER SESSION SET TIME_ZONE = '-07:00';
SELECT TO_CHAR(LOCALTIMESTAMP,
'YYYY-MM-DD HH24:MI:SS FF TZH:TZM')
FROM dual;
The query fails, but the requirement is to display the current datetime for the session time zone including the offset. What is the best fix?
Options:
A. Replace
LOCALTIMESTAMPwithCURRENT_TIMESTAMPB. Cast
LOCALTIMESTAMPtoDATEbefore formattingC. Keep
LOCALTIMESTAMPand changeNLS_DATE_FORMATD. Replace
LOCALTIMESTAMPwithCURRENT_DATE
Best answer: A
Explanation: LOCALTIMESTAMP returns a TIMESTAMP without time-zone information, so format elements such as TZH:TZM cannot be applied to it. CURRENT_TIMESTAMP is the session-based current datetime expression that returns TIMESTAMP WITH TIME ZONE and includes the offset.
The key distinction is datatype. CURRENT_TIMESTAMP returns TIMESTAMP WITH TIME ZONE, while LOCALTIMESTAMP returns TIMESTAMP and CURRENT_DATE returns DATE. All three reflect the session time zone for their current value, but only CURRENT_TIMESTAMP actually carries time-zone data in the returned value.
CURRENT_DATE→DATECURRENT_TIMESTAMP→TIMESTAMP WITH TIME ZONELOCALTIMESTAMP→TIMESTAMP
Because the format model requests TZH:TZM, Oracle needs a value that contains time-zone information. LOCALTIMESTAMP does not, so the right fix is to use CURRENT_TIMESTAMP. The closest distractor is CURRENT_DATE, which is also session-based but still has no time-zone component to format.
- The
CURRENT_DATEoption fails because aDATEvalue does not store time-zone information or fractional seconds. - The
NLS_DATE_FORMAToption fails because display defaults do not add time-zone data to aTIMESTAMPwithout time zone. - The cast-to-
DATEoption fails because casting removes precision and still does not produce a value with an offset.
Question 5
Topic: Manage Data in Different Time Zones
An application stores reminder_at in a TIMESTAMP WITH TIME ZONE column. For each new row, it must save a value 45 minutes from now using the user’s session time zone, not the database server’s time zone. Which SQL expression best meets the requirement?
Options:
A.
CURRENT_TIMESTAMPB.
CURRENT_TIMESTAMP + INTERVAL '45' MINUTEC.
INTERVAL '45' MINUTED.
SYSTIMESTAMP + INTERVAL '45' MINUTE
Best answer: B
Explanation: Use CURRENT_TIMESTAMP when the value must be based on the current moment in the session time zone, and add an INTERVAL when the requirement is a duration from that moment. Here, the requirement is both time-zone-aware and offset by 45 minutes, so the expression must combine the two.
CURRENT_TIMESTAMP returns the current date and time in the session time zone as a TIMESTAMP WITH TIME ZONE. An INTERVAL value represents only a span of time, such as 45 minutes; it is not a complete datetime by itself. Because the requirement is “45 minutes from now” and specifically in the user’s session time zone, the correct solution is to start with CURRENT_TIMESTAMP and add INTERVAL '45' MINUTE.
SYSTIMESTAMP is also time-zone-aware, but it reflects the database server’s system clock and time zone context, not the session time zone required in the stem. Using CURRENT_TIMESTAMP without adding the interval gives only the present moment, and using only the interval gives only a duration, not a storable timestamp value.
The key idea is: use a current-timestamp expression as the anchor, and use an interval value as the amount to add or subtract.
- The option using
SYSTIMESTAMPfails because it is based on the server environment rather than the user’s session time zone. - The option using only
CURRENT_TIMESTAMPfails because it does not apply the required 45-minute offset. - The option using only the interval fails because an interval is a duration, not a full datetime value for the column.
Question 6
Topic: Manage Data in Different Time Zones
Which Oracle SQL current-datetime expression returns the current date and time in the session time zone but as a value that does not retain time-zone information?
Options:
A.
CURRENT_TIMESTAMPB.
LOCALTIMESTAMPC.
SYSTIMESTAMPD.
CURRENT_DATE
Best answer: B
Explanation: LOCALTIMESTAMP is the current-datetime expression that gives session-local date and time while omitting time-zone data from the returned value. It returns a plain TIMESTAMP, not a time-zone-aware datatype.
Oracle current-datetime expressions differ by both the time source and the datatype they return. LOCALTIMESTAMP uses the session time zone for the current local date and time, but it returns a TIMESTAMP, so the value itself does not store a time-zone offset or region.
By contrast:
CURRENT_TIMESTAMPreturnsTIMESTAMP WITH TIME ZONEin the session time zone.SYSTIMESTAMPreturnsTIMESTAMP WITH TIME ZONEbased on the database server clock.CURRENT_DATEuses the session time zone, but it returns aDATE, not aTIMESTAMP.
The key distinction is whether the expression returns a time-zone-aware datatype or a datatype that omits time-zone information.
- Time zone retained the option using
CURRENT_TIMESTAMPis tempting because it uses the session time zone, but it keeps time-zone information. - Server-based value the option using
SYSTIMESTAMPalso retains time-zone information and is based on the server clock. - Wrong datatype the option using
CURRENT_DATEomits time-zone data, but it returns aDATErather than aTIMESTAMP.
Question 7
Topic: Manage Data in Different Time Zones
A developer needs a query that returns a column named reminder_ts that is 45 minutes before the current session timestamp. The result must preserve time zone information. Which SQL statement is best?
Options:
A. SELECT CURRENT_DATE - INTERVAL ‘45’ MINUTE AS reminder_ts FROM dual;
B. SELECT LOCALTIMESTAMP - INTERVAL ‘45’ MINUTE AS reminder_ts FROM dual;
C. SELECT CURRENT_TIMESTAMP - INTERVAL ‘45’ MINUTE AS reminder_ts FROM dual;
D. SELECT SYSDATE - INTERVAL ‘45’ MINUTE AS reminder_ts FROM dual;
Best answer: C
Explanation: Use CURRENT_TIMESTAMP when the result must keep time zone information. Subtracting INTERVAL '45' MINUTE is valid interval arithmetic, and the result remains a TIMESTAMP WITH TIME ZONE.
Oracle supports adding and subtracting INTERVAL values from datetime expressions. Here, INTERVAL '45' MINUTE is an interval literal, and applying it to CURRENT_TIMESTAMP produces a value 45 minutes earlier than the current session timestamp.
The key requirement is preserving time zone information. CURRENT_TIMESTAMP returns a TIMESTAMP WITH TIME ZONE, so the result keeps time-zone awareness after the subtraction. By contrast, LOCALTIMESTAMP returns a plain TIMESTAMP, and both SYSDATE and CURRENT_DATE return DATE values, so those choices do not satisfy the datatype requirement even though the time arithmetic may look similar.
The closest distractor is the LOCALTIMESTAMP expression because the interval math is right, but the datatype is not.
LOCALTIMESTAMPsubtracts 45 minutes correctly, but it returnsTIMESTAMPwithout time zone.SYSDATEuses aDATEvalue, so the result does not preserve time zone information.CURRENT_DATEreflects the session date and time, but its datatype is stillDATE, not time-zone-aware.
Question 8
Topic: Manage Data in Different Time Zones
A developer is troubleshooting an audit insert:
INSERT INTO login_audit (log_ts)
VALUES (CURRENT_DATE);
LOG_TS is a TIMESTAMP WITH TIME ZONE column. Users report that the stored value does not preserve fractional seconds, and the requirement is to store the current date and time in each session’s time zone. Which expression should replace CURRENT_DATE?
Options:
A. CURRENT_TIMESTAMP
B. CURRENT_DATE
C. LOCALTIMESTAMP
D. SYSDATE
Best answer: A
Explanation: The requirement needs both timestamp precision and time-zone awareness. CURRENT_TIMESTAMP is the Oracle expression that returns the current date and time with fractional seconds in the session time zone.
In Oracle SQL, CURRENT_DATE returns a DATE, so it reflects the session time zone but does not keep fractional seconds. The requirement here is more precise: store the current moment with both fractional seconds and time-zone information. CURRENT_TIMESTAMP matches that exactly because it returns a TIMESTAMP WITH TIME ZONE value based on the session time zone.
LOCALTIMESTAMP is close, but it returns a TIMESTAMP without time-zone data. SYSDATE also returns a DATE, so it lacks fractional seconds and is not the best fit for a time-zone-aware audit column. For a TIMESTAMP WITH TIME ZONE requirement, use the expression that already carries both timestamp precision and zone context.
- Using
CURRENT_DATEfails becauseDATEvalues do not include fractional seconds. - Using
LOCALTIMESTAMPis tempting because it includes fractional seconds, but it omits time-zone information. - Using
SYSDATEfails because it is aDATEexpression and does not satisfy the precision requirement.
Question 9
Topic: Manage Data in Different Time Zones
A developer is inserting a value into audit_log(created_ts), where created_ts is defined as TIMESTAMP. The inserted value must use the current date and time in the session time zone and the expression must already return datatype TIMESTAMP without time zone. Which expression best meets the requirement?
Options:
A.
SYSTIMESTAMPB.
CURRENT_TIMESTAMPC.
CURRENT_DATED.
LOCALTIMESTAMP
Best answer: D
Explanation: LOCALTIMESTAMP is the only choice that matches both requirements: session time-zone behavior and a return type of TIMESTAMP without time zone. The other datetime expressions either include a time-zone datatype or return a different datatype entirely.
In Oracle, these current-datetime expressions differ by both return datatype and time-zone source. CURRENT_TIMESTAMP uses the session time zone, but its datatype is TIMESTAMP WITH TIME ZONE. CURRENT_DATE also uses the session time zone, but it returns datatype DATE, not TIMESTAMP. LOCALTIMESTAMP uses the session time zone and returns datatype TIMESTAMP, which has no time-zone field.
That makes LOCALTIMESTAMP the best fit when a column is defined as TIMESTAMP and you want the current local session date and time without storing time-zone information. The closest distractor is CURRENT_TIMESTAMP, but its datatype includes time zone.
- Time zone included The option using
CURRENT_TIMESTAMPmatches the session time zone, but it returnsTIMESTAMP WITH TIME ZONE. - Wrong datatype The option using
CURRENT_DATEfollows the session time zone, but it returnsDATE. - Wrong time source The option using
SYSTIMESTAMPreturns a time-zone-aware timestamp, but it is based on the database server clock rather than the session time zone.
Question 10
Topic: Manage Data in Different Time Zones
An application stores order times in order_ts TIMESTAMP WITH TIME ZONE. A report must show orders from the last 2 hours in each user’s session time zone. After users change their session time zone, this filter returns unexpected rows:
WHERE order_ts >= SYSTIMESTAMP - INTERVAL '2' HOUR
What is the best fix?
Options:
A. Use
CURRENT_TIMESTAMP - INTERVAL '2' DAYB. Use
SYSDATE - INTERVAL '2' HOURC. Use
CURRENT_DATE - INTERVAL '2' HOURD. Use
CURRENT_TIMESTAMP - INTERVAL '2' HOUR
Best answer: D
Explanation: CURRENT_TIMESTAMP is evaluated in the session time zone, so subtracting INTERVAL '2' HOUR gives the correct rolling cutoff for each user. That makes it the best match for a TIMESTAMP WITH TIME ZONE column and the stated requirement.
The key concept is choosing the right current-datetime expression before adding or subtracting an INTERVAL. SYSTIMESTAMP uses the database server’s time zone, while CURRENT_TIMESTAMP uses the session time zone. Because the report requirement is based on each user’s session time zone, the cutoff must be computed from CURRENT_TIMESTAMP, then shifted back by 2 hours with INTERVAL '2' HOUR.
So the intended logic is: take the current session timestamp, subtract 2 hours, and compare that value to the TIMESTAMP WITH TIME ZONE column. This keeps both the time-zone context and the interval unit aligned with the requirement. The closest distractors either use the wrong base datetime or the wrong interval unit.
- Using
CURRENT_DATEis session-based, but it returns aDATE, not a time-zone-aware timestamp. - Using
SYSDATEstill relies on the server clock context, so session time-zone changes do not control the cutoff. - Using a 2-day interval changes the window from hours to days, so the row set becomes much larger than intended.
Continue in the web app
Use IT Mastery for interactive Oracle 1Z0-071 practice with mixed sets, timed mocks, topic drills, explanations, and progress tracking.
Related focused pages
- Free Oracle 1Z0-071 Full-Length Practice Exam
- Relational Database Concepts
- SQL SELECT
- Restrict and Sort Data
- Single-Row Functions
- Conversion and CASE
- Group Functions
- Display Data from Multiple Tables
- Use Subqueries to Solve Queries
- Use Set Operators
- Manage Tables by Using DML Statements
- Indexes and Sequences
- DDL Tables and Relationships
- Manage Views
- Control User Access
- Data Dictionary Views