Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 11h 56m 54s Coupon code: 50OFF

Exam Details

Exam Code
1Z0-071
Vendor
Oracle
Question Types
Single ChoiceMultiple Choice
Official Page
View Exam Page
1

Relational Database concepts

This topic covers how relational data is organized and how its logical design differs from physical storage. Candidates must be able to explain how SQL is used to work with a relational database and identify the roles of tables, rows, and columns.

Question 1 of 41 Single Choice

A company maintains customer and order tables in an Oracle Database. The application relies on those tables and their columns, while a database administrator adds an index to help a nightly process locate rows more efficiently. The process still uses the same application and data model, and the administrator is assessing whether the logical design has changed.

Which conclusion best distinguishes the relational design from the physical storage in this environment?

Show Answer

Correct Answer

A

Option A is correct because the customer and order tables represent logical relations, while the index is a physical access structure that can be added or changed without changing their meaning. Option B is not correct because an index does not define the relationships between the tables. Option C is not correct because changing an index does not require changing the table design. Option D is not correct because tables are database objects, not merely application descriptions.

Question 2 of 41 Multiple Choice

A finance department stores customer and invoice information in an Oracle Database. Its developers use SQL through a reporting application, while the database team is responsible for retaining the records between application sessions. During a design review, managers disagree about whether SQL itself stores the information and how the database represents each customer and invoice.

A team is reviewing how its reporting system relates to the database. Choose two accurate conclusions.

Select 2 answers, then check them.

Show Answer

Correct Answer

A, C

Options A and C are correct because SQL is used to work with database objects, and the customer and invoice data are organized as relations with rows and columns. Option B is not correct because SQL is a language, not a storage container. Option D is not correct because some SQL statements request information without creating persistent data. Option E is not correct because relational tables can persist as database objects.

2

Retrieving Data using the SQL SELECT Statement

This topic covers selecting expressions and columns, naming output columns, and producing text with concatenation and quoted literals. Candidates must interpret DISTINCT results and evaluate arithmetic expressions when a value is NULL.

Question 3 of 41 Single Choice

An HR analyst is preparing a review list from an existing EMPLOYEES table. The business owner requires each last name followed by the exact text 's review, with the apostrophe visible, and the output heading must display as Review Label with a space. The report must read all employee rows and use a single selected expression for the label.

Which statement meets the analyst's requirements?

Show Answer

Correct Answer

A

Option A is correct because the q-quoted literal contributes the apostrophe and the double-quoted alias preserves the requested space. Option B is not correct because an unquoted alias cannot contain a space. Option C is not correct because plus is an arithmetic operator, not the character concatenation operator. Option D is not correct because its literal omits the apostrophe.

Question 4 of 41 Multiple Choice

An operations team maintains SERVICE_REQUESTS with many records for each region_code and service_tier pair. A spreadsheet export should list the available pairings only, and it must not show a request identifier or a calculated count. The analyst is reviewing SELECT DISTINCT region_code, service_tier FROM service_requests and needs to explain the rows it can return.

Choose two. Which statements accurately describe the rows returned by this query?

Select 2 answers, then check them.

Show Answer

Correct Answer

A, B

Options A and B are correct because DISTINCT applies to the selected pair, so a region can recur when its service tier differs, while identical pairs appear once. Option C is not correct because Oracle does not deduplicate each column separately before making pairs. Option D is not correct because DISTINCT does not sort the result. Option E is not correct because an unselected request_id does not distinguish selected rows.

Question 5 of 41 Single Choice

A payroll analyst checks a review query against PAYROLL_SNAPSHOT before a month-end handoff. The row for employee_id 204 has salary 5200 and commission_amount NULL because no commission was recorded, and the query selects employee_id together with salary + commission_amount AS total_compensation for every row. The analyst needs to report the value of the total_compensation cell for employee 204.

What value does the total_compensation column contain for employee 204?

Show Answer

Correct Answer

B

Option B is correct because adding the row's NULL commission_amount makes the entire arithmetic expression NULL, and the alias does not change that value. Option A is not correct because SQL arithmetic does not treat NULL as zero. Option C is not correct because the expression is evaluated, not displayed as a text formula. Option D is not correct because NULL does not remove the row from this SELECT result.

3

Restricting and Sorting Data

This topic covers how SQL conditions restrict returned rows, how operator precedence affects expressions, and how substitution variables work in SQL*Plus. Candidates must be able to limit and sort results to meet specified requirements and interpret the effects of DEFINE and VERIFY.

Question 6 of 41 Single Choice

A payroll analyst is preparing a report from the EMPLOYEES table in Oracle Database. The report must show exactly two employees in department 50 who have the highest salaries. If two employees have the same salary, the one with the lower employee ID must appear first. The report must not return extra rows for salary ties.

Which query returns exactly two employees from department 50 with the highest salaries, using employee ID to order employees who have the same salary?

Show Answer

Correct Answer

A

Option A is correct because it sorts by salary and employee ID before limiting the result to two rows. Option B is not correct because WITH TIES can return more than two rows when salaries match at the cutoff. Option C is not correct because ROWNUM restricts rows before the requested sort is applied. Option D is not correct because ascending salary order returns the lowest salaries first.

Question 7 of 41 Multiple Choice

An operations analyst runs a report in SQL*Plus against the EMPLOYEES table. At the start of the session, the script executes `DEFINE cutoff = 9000` and `SET VERIFY ON`. It then runs a query whose WHERE clause contains `salary > &cutoff`. The analyst wants to understand the value source and the extra lines shown in SQL*Plus output, without changing the report.

Which two statements correctly describe the script behavior? Choose two.

Select 2 answers, then check them.

Show Answer

Correct Answer

A, B

Option A is correct because DEFINE stores the substitution value as text under the name CUTOFF. Option B is correct because VERIFY ON displays the line before and after substitution. Option C is not correct because a DEFINE variable is not a bind variable. Option D is not correct because the variable is already defined. Option E is not correct because VERIFY reports substitution lines, not filtered rows.

Question 8 of 41 Single Choice

A procurement team reviews plans stored in a table with numeric columns named MONTHLY_FEE and SETUP_FEE. The team needs to identify plans whose first-year cost is greater than 5000. First-year cost consists of twelve monthly fees plus one setup fee, which is charged only once. Both columns contain non-NULL values.

Which WHERE condition correctly selects plans whose first-year cost exceeds 5000?

Show Answer

Correct Answer

A

Option A is correct because multiplication is evaluated before addition, producing twelve monthly fees plus the one-time setup fee. Option B is not correct because it multiplies the setup fee by twelve. Option C is not correct because it adds the setup fee to twelve before multiplying. Option D is not correct because it places the setup fee on the opposite side of the comparison.

4

Using Single-Row Functions to Customize Output

This topic covers character, number, and date functions used to customize values returned by SQL queries. Candidates must choose functions and expressions that produce the required text, numeric results, and date calculations.

Question 9 of 41 Single Choice

A personnel team uses a STAFF table with LAST_NAME and EMAIL columns. Email addresses were imported from several systems, so their stored letter case is inconsistent. A report must display each selected surname in uppercase and find the row for mira.chen@north.example regardless of how the address is capitalized in the table. Which pair of expressions meets the requirements?

Which pair of expressions meets the requirements?

Show Answer

Correct Answer

A

Option A is correct because applying UPPER to last_name produces the requested uppercase display, while LOWER(email) makes the comparison ignore stored letter case. Option B is not correct because LOWER on last_name does not produce uppercase output. Option C is not correct because comparing email directly remains case-sensitive. Option D is not correct because INITCAP changes the address format rather than performing the required case-insensitive comparison.

Question 10 of 41 Single Choice

A support manager uses a SERVICE_REQUESTS table whose RECEIVED_AT column is of type DATE and can contain a time of day. A daily report must show how many calendar days have passed since each request was received. For example, a request received late yesterday should show one day after midnight today, even if a full 24 hours have not passed. Which expression calculates the required value?

Which expression calculates the number of calendar-day boundaries between each request's receipt date and today?

Show Answer

Correct Answer

A

Option A is correct because truncating both DATE values to midnight makes their subtraction count calendar-day boundaries, regardless of their time portions. Option B is not correct because truncating the difference counts completed 24-hour periods instead. Option C is not correct because it can return a fractional number of days. Option D is not correct because it reverses the requested subtraction.

Question 11 of 41 Multiple Choice

A distributor is revising a SQL report over ORDER_LINES, where UNIT_PRICE is a decimal amount and QUANTITY is a positive whole number. The report must show each unit price rounded to the nearest tenth and the number of units that remain after packing as many full cases of 12 as possible. The application consumes these values directly, so truncation or reversed operands would give incorrect results.

Which two expressions meet these requirements? Choose two.

Select 2 answers, then check them.

Show Answer

Correct Answer

A, B

Options A and B are correct because ROUND(unit_price, 1) rounds to one decimal place, while MOD(quantity, 12) returns units left after complete cases of 12. Option C is not correct because TRUNC removes digits instead of rounding. Option D is not correct because rounding quantity to 12 decimal places does not find a case remainder. Option E reverses the MOD operands, and option F rounds price to two decimal places.

5

Using Conversion Functions and Conditional Expressions

This topic covers converting values between character, numeric, and date types, as well as using conditional expressions to handle null values. Candidates must choose explicit conversions and combine functions so that expressions return the required value and data type.

Question 12 of 41 Single Choice

A sales reporting application receives a date as text from a configuration table. The report compares that value with the DATE column order_date. Database sessions are opened by several regional services, and their NLS_DATE_FORMAT settings are not controlled centrally. The report must use an explicit conversion and compare DATE values.

A report must compare the DATE column to the value represented by the text '2024/04/07'. The application uses sessions with different NLS_DATE_FORMAT settings, and all stored order_date values are at midnight. Which expression converts the text explicitly and produces a DATE for the comparison?

Show Answer

Correct Answer

A

Option A is correct because TO_DATE uses the supplied format model to convert the text to a DATE, without relying on NLS_DATE_FORMAT. Option B compares character values rather than DATE values. Option C relies on implicit conversion and the session setting. Option D attempts an invalid numeric conversion of a value containing slashes.

Question 13 of 41 Multiple Choice

A billing system stores a numeric amount in source_value, an optional numeric string in fallback_text, and a required numeric default in backup_value. The interface must return one numeric result, preferring those sources in that order. The text field contains only digits when populated, but the expression must convert it explicitly rather than depend on implicit type conversion.

Choose two. Which expressions return the first non-null value in this order, source_value, the numeric value represented by fallback_text, and backup_value? Assume fallback_text is either NULL or contains valid digits, and backup_value is never NULL.

Select 2 answers, then check them.

Show Answer

Correct Answer

A, B

Options A and B are correct because they explicitly convert the text to a number and test the values in the required order. Option C mixes character and numeric expressions in COALESCE. Option D returns a character value and omits backup_value. Option E returns NULL when its arguments are equal, so it does not provide the required fallback sequence.

Question 14 of 41 Single Choice

A finance system sends amount values to a partner application as character data. The partner requires exactly two decimal places, no leading blank padding, and a period as the decimal separator. Database sessions can use different numeric conventions, so the SQL expression must specify the required output behavior rather than rely on session defaults.

A data feed requires each non-null amount to be returned as text with two decimal places, no leading padding, and a period as the decimal separator, regardless of the session's numeric settings. Which expression meets these requirements?

Show Answer

Correct Answer

A

Option A is correct because TO_CHAR returns text, the format model specifies two decimal places, FM removes padding, and the NLS argument sets the decimal separator. Option B depends on session numeric settings. Option C returns a number, not text. Option D omits FM and can include leading spaces.

6

Reporting Aggregated Data Using Group Functions

This topic covers how SQL group functions summarize rows and how GROUP BY forms groups for reporting. Candidates must select appropriate aggregates and use HAVING to restrict grouped results without changing the rows included in each group.

Question 15 of 41 Single Choice

A finance team uses a table named dept_payroll, with one row for each employee. The employee_id column is never null, but annual_pay can be null for employees whose compensation is not yet recorded. A report must show departments with at least five employees and an average of recorded annual_pay values above 72000. The count must include every employee row, including rows with null pay.

Which query returns one row per department for departments with at least five employees and an average annual pay above 72000?

Show Answer

Correct Answer

A

The first query is correct because it forms one group per department, counts all employee rows, and applies both thresholds after aggregation. Option B is not correct because WHERE cannot contain COUNT(*). Option C is not correct because it removes lower-paid rows before calculating the average and employee count. Option D is not correct because grouping by annual_pay can split one department into several result groups.

Question 16 of 41 Multiple Choice

An accounts team reports from an invoices table that has one row per invoice, a populated office_code, and an invoice_total that may be null when the amount has not been entered. The report must show each office's count of recorded invoice amounts and the sum of those amounts. Offices should appear only when their aggregate invoice total is greater than 10000.

Which two clauses, used in this order after FROM invoices, complete the query so it groups by office and retains only offices whose invoice total exceeds 10000? Choose two.

Select 2 answers, then check them.

Show Answer

Correct Answer

A, B

GROUP BY office_code creates one group for each office, and HAVING SUM(invoice_total) > 10000 filters those groups by their completed totals. Option C is not correct because WHERE cannot test a group function. Option D groups by amount rather than office. Option E tests the count rather than the total, while Option F removes individual invoices before summing and can change an office total.

7

Displaying Data from Multiple Tables

This topic covers queries that combine rows from multiple tables, including self-joins, range-based joins, and outer joins. Candidates must choose join conditions that match the required rows and preserve unmatched rows when the report calls for them.

Question 17 of 41 Single Choice

A human resources report uses the EMPLOYEES table, which stores each worker's employee_id, manager_id, and last_name. The manager_id column contains the employee_id of that worker's manager. The report must show one row for each employee who has a manager, with the employee's last name beside the manager's last name. Employees without a manager should not appear.

Which join condition returns each employee who has an assigned manager, together with that manager's last name?

Show Answer

Correct Answer

B

Option B matches each employee's manager_id to the manager row's employee_id, so it returns the requested employee and manager names. Option A matches each row to itself. Option C pairs employees who share a manager. Option D compares an employee's ID with another employee's manager ID, which does not identify the employee's own manager.

Question 18 of 41 Multiple Choice

A payroll report combines EMPLOYEES with a custom PAY_GRADES table. Each employee row has a salary, while each grade row has lowest_salary and highest_salary values. The report must assign employees to the grade covering their salary, including employees whose salary exactly equals either limit. The join must use the range values rather than an equality match.

Choose two join conditions that correctly match every employee to the salary grade whose range includes the employee's salary.

Select 2 answers, then check them.

Show Answer

Correct Answer

A, C

Options A and C include both endpoints of the salary range, so employees at a grade's lowest or highest salary are matched correctly. Option B excludes those boundary values. Option D reverses the range limits. Option E uses OR, so nearly every salary satisfies at least one side of the condition.

Question 19 of 41 Single Choice

A department report must list every department name and any employee last names assigned to it. Some departments currently have no employees, but they still need to appear with null employee details. The query already selects columns from DEPARTMENTS using alias d and EMPLOYEES using alias e. No condition should remove departments after the join.

Which FROM clause preserves every department, including departments with no employees?

Show Answer

Correct Answer

B

Option B preserves every row from DEPARTMENTS and supplies null employee columns when no employee matches, which meets the report requirement. Option A drops departments without employees. Option C preserves all employees instead of all departments. Option D also includes employees without a matching department, adding rows the report does not require.

8

Using Subqueries to Solve Queries

Subqueries let a SQL statement use the result of another query to evaluate a condition or assign a value. Candidates must distinguish single-row and multiple-row results and use correlated subqueries appropriately when updating or deleting rows.

Question 20 of 41 Single Choice

A payroll team uses the Oracle HR tables and must reset salaries for employees in department 50 to the minimum salary defined for each employee's current job. Each employee has a valid JOB_ID, and JOB_ID is unique in JOBS. Employees in other departments must remain unchanged, and the update must not assign one shared minimum to every target employee.

Which statement updates the salary of each employee in department 50 to the minimum salary for that employee's job?

Show Answer

Correct Answer

A

Option A is correct because its subquery matches each employee to the unique JOB_ID in JOBS, so each department 50 employee receives the minimum for that employee's job. Option B uses the department's minimum employee salary instead. Option C assigns every row the IT_PROG minimum. Option D can return several jobs, causing a scalar-subquery error.

Question 21 of 41 Multiple Choice

An HR analyst is preparing a compensation review using the EMPLOYEES table. The report is limited to staff in departments 60 and 90, and it should include a person only when that person's salary is higher than at least one salary paid in department 50. Department 50 has at least one employee, and none of its salary values is NULL. The analyst will place one selected predicate in the report's WHERE clause.

A report must return employees from departments 60 or 90 whose salary is strictly greater than at least one salary in department 50. Department 50 has employees, and their salaries are not NULL. Which two predicates meet this requirement? Choose two.

Select 2 answers, then check them.

Show Answer

Correct Answer

A, B

Options A and B are correct because a salary greater than any department 50 salary is equivalent to a salary greater than the minimum salary there. Option C requires exceeding every salary. Option D tests for equality with a salary. Option E allows equality and therefore does not guarantee a strictly greater salary.

9

Using SET Operators

This topic covers combining query results with UNION, UNION ALL, INTERSECT, and MINUS. Candidates must match the SELECT lists and apply ORDER BY to the complete set operation result.

Question 22 of 41 Single Choice

A reporting team combines item codes from spring and autumn order tables for a reconciliation export. Some codes occur several times in each table, and the export must preserve every occurrence rather than collapse repeated values. The receiving system also requires the combined rows to be sorted by item code. Both columns have the same character data type.

Which query returns every occurrence of ITEM_CODE from both tables and sorts the complete result in ascending order?

Show Answer

Correct Answer

A

Option A is correct because UNION ALL retains repeated ITEM_CODE values, and ORDER BY 1 sorts the complete combined result. Option B removes duplicate values. Option C returns only values present in both tables. Option D returns values from SPRING_ORDERS that are absent from AUTUMN_ORDERS.

Question 23 of 41 Multiple Choice

A finance warehouse team compares item codes from two sales feeds before producing a monthly reconciliation report. Each feed can contain repeated codes, and the codes are stored as VARCHAR2 values in both tables. The analyst needs to explain which set operators retain common values, which include values from either feed, and how to sort the final combined output.

Choose three. Which statements correctly describe the set operations and ordering available for these queries?

Select 3 answers, then check them.

Show Answer

Correct Answer

A, C, E

Options A, C, and E are correct. UNION returns distinct values from either result, INTERSECT returns shared values without duplicates, and a final ORDER BY sorts the combined output. Option B is not correct because UNION ALL preserves duplicates. Option D reverses MINUS behavior. Option F is not correct because corresponding SELECT lists must have the same number of expressions.

10

Managing Tables using DML statements

This topic covers inserting, updating, and deleting table rows, including conditional inserts into multiple tables and MERGE operations. Candidates must also determine which changes remain after transaction control statements such as SAVEPOINT, ROLLBACK, and COMMIT.

Question 24 of 41 Multiple Choice

A distribution center loads shipment rows from a staging table into a shipment history table and one of two work queues. Every row must be copied to history. A row may also meet more than one queue condition because the status rules overlap. The team is comparing conditional multitable insert approaches and needs to understand how each handles those overlapping conditions.

Choose two. Which statements correctly describe the behavior relevant to the required routing?

Select 2 answers, then check them.

Show Answer

Correct Answer

A, D

Options A and D are correct because INSERT ALL can place a source row in every target with a true condition, while INSERT FIRST stops at the first true condition. Option B is not correct because INSERT FIRST does not process every matching condition. Option C is not correct because an unconditional INTO applies to every source row. Option E is not correct because a multitable insert can copy a row to multiple targets.

Question 25 of 41 Single Choice

An inventory team uses MERGE to apply counts from a daily staging table to a target table with one row per product. Product 842 already exists in the target, and two staging rows for that product contain different counts. The ON condition matches rows by product ID, and the matched clause updates the target count. The team asks what Oracle does when this statement runs.

What happens when this MERGE statement processes the described source rows?

Show Answer

Correct Answer

B

Option B is correct because the existing inventory row matches two source rows, so the MERGE cannot update that target row more than once. Option A is not correct because Oracle does not arbitrarily choose one matching source row. Option C is not correct because a MERGE cannot update the same target row repeatedly. Option D is not correct because the target key already matches.

Question 26 of 41 Single Choice

A billing clerk begins a transaction with account 10 at a balance of 100. The clerk updates its balance to 120, creates a savepoint named s1, deletes account 10, and inserts account 20. The clerk then rolls back to s1, updates account 10 to 125, and commits. No other session changes these accounts during this work.

After the statements complete and the transaction is committed, which rows and values remain?

Show Answer

Correct Answer

A

Option A is correct because rollback to the savepoint undoes the delete and insert after it, while the later update sets account 10 to 125 before commit. Option B is not correct because that later update is committed. Option C is not correct because the delete is rolled back. Option D is not correct because the insert is rolled back.

11

Managing Indexes Synonyms and Sequences

This topic covers the management of indexes, synonyms, and sequences in Oracle Database. Candidates must choose appropriate index designs, understand sequence behavior, and use synonyms to provide suitable names for database objects.

Question 27 of 41 Single Choice

A customer-support application searches a large CUSTOMERS table with the predicate UPPER(EMAIL) = UPPER(:p_email). The table has a regular B-tree index on EMAIL, but the lookup remains slow. The application team must keep its SQL predicate unchanged, and the database administrator wants an index that can support this exact expression.

Which index best supports the application's existing lookup predicate?

Show Answer

Correct Answer

B

Option B is correct because the function-based index stores the result of UPPER(EMAIL), matching the expression in the application's predicate. Option A indexes the unmodified value, so it does not directly match that expression. Option C has the same expression mismatch. Option D also indexes EMAIL without applying UPPER, so it does not address the case conversion.

Question 28 of 41 Multiple Choice

An order-entry system uses a sequence configured with CACHE 50 to generate order identifiers for sessions connected to a single Oracle database instance. The business requires identifiers to be distinct, but it accepts gaps in the numbering. During a busy period, one session rolls back an order and the database instance later fails unexpectedly.

Choose two statements that correctly describe the sequence behavior in this deployment.

Select 2 answers, then check them.

Show Answer

Correct Answer

B, C

Options B and C are correct because sequence advancement is not rolled back with a transaction, and cached values can be lost after a failure. Option A is incorrect because NEXTVAL advances the sequence to provide distinct values across sessions. Option D is incorrect because a session must call NEXTVAL before CURRVAL is available. Option E is incorrect because sequence order does not guarantee commit order.

Question 29 of 41 Single Choice

The OPERATIONS and SUPPORT schemas each need to refer to a different table through the name STAFF. A public synonym named STAFF already points to HR.EMPLOYEES, and other applications depend on it. Both application schemas already have the required privileges on their respective target tables, so the change must only provide schema-specific names without modifying the shared synonym.

Which approach gives each application schema its own STAFF name without changing the shared public synonym?

Show Answer

Correct Answer

B

Option B is correct because each schema can define a private synonym named STAFF that takes precedence over the public synonym in that schema. Option A is incorrect because a public synonym is shared, not separately defined per schema. Option C changes the shared target. Option D leaves SUPPORT resolving the public synonym instead of its required object.

12

Use DDL to manage tables and their relationships

This topic covers creating and changing tables, choosing column data types, and managing temporary or external tables. Candidates must also be able to define and manage constraints that control relationships between tables.

Question 30 of 41 Single Choice

A logistics team has stopped using the LEGACY_CODE column in its SHIPMENT_LOG table. Applications must no longer be able to reference that column, but the table is large and the DBA must defer reclaiming its storage until a planned maintenance window. The change must be made with DDL and must not remove any other columns from the table.

Which statement meets the requirement?

Show Answer

Correct Answer

A

Option A is correct because SET UNUSED makes LEGACY_CODE unavailable for use while deferring the physical removal of its data, as required. Option B is not correct because DROP COLUMN removes the column immediately. Option C is not correct because an invisible column remains available by explicit reference. Option D is not correct because no column has yet been marked unused.

Question 31 of 41 Multiple Choice

A reporting team uses an Oracle global temporary table named SESSION_TOTALS to hold intermediate totals during multi-step work. The table is created with ON COMMIT PRESERVE ROWS because users may commit between steps without losing their intermediate rows. Several analysts use the same table definition at the same time, and each must see only the rows created in their own session.

A session creates and uses this table. Choose two statements that correctly describe its behavior.

Select 2 answers, then check them.

Show Answer

Correct Answer

B, D

Options B and D are correct because ON COMMIT PRESERVE ROWS retains a session's rows across commits, while the global temporary table definition is shared. Option A is not correct because each session sees only its own rows. Option C is not correct because the definition is not session-private. Options E and F are not correct because rows are removed at session end and are not persistent database data.

13

Managing Views

This topic covers creating and replacing views, understanding their dependencies, and determining when changes through a view are allowed. Candidates must be able to choose view options that fit access and deployment requirements and recognize when a view cannot support DML.

Question 32 of 41 Single Choice

The HR team uses a view named DEPT40_STAFF that selects employee_id, last_name, and department_id from EMPLOYEES where department_id = 40. The view was created with WITH CHECK OPTION. An analyst can query the view and has permission to update it. The analyst submits an update through the view that changes one employee's department_id from 40 to 50.

What happens when the analyst attempts this update through the view?

Show Answer

Correct Answer

A

Option A is correct because the view's CHECK OPTION rejects changing a row so it no longer satisfies department_id = 40. Option B is not correct because CHECK OPTION prevents this update rather than silently removing the row from the view. Option C is not correct because an update through a view does not change the view definition. Option D is not correct because a WHERE clause alone does not make this simple view read-only.

Question 33 of 41 Multiple Choice

A finance team created a view named DEPT_COSTS using DEPARTMENTS and EMPLOYEES. It groups rows by department_id and department_name and includes COUNT(employee_id) as STAFF_COUNT. The view is used for monthly reporting. Finance now wants staff to update department names through a view, while keeping the existing summary view available for reports.

The team is reviewing the view design. Choose two statements that are correct.

Select 2 answers, then check them.

Show Answer

Correct Answer

A, C

Options A and C are correct because GROUP BY and COUNT make this reporting view non-updatable, while a simple single-table view can support DML. Option B is not correct because CHECK OPTION does not remove the restrictions caused by grouping and aggregation. Option D is not correct because a department identifier does not make a grouped view updatable. Option E is not correct because READ ONLY prevents DML through the view.

Question 34 of 41 Single Choice

A release team must install a view definition before a separate deployment creates its base table named NEW_HIRE_STAGE. The view definition already specifies the expected columns from that table, but the deployment schedule cannot be changed. The team accepts that the view may not be usable until the table is installed and wants the view object created during the current release.

Which action meets the deployment requirement?

Show Answer

Correct Answer

A

Option A is correct because FORCE allows the view to be created while its referenced table is absent, and the view can become valid after that table is created. Option B is not correct because CHECK OPTION governs updates through a view and does not create base tables. Option C is not correct because READ ONLY affects DML, not dependency checking. Option D is not correct because normal view creation checks referenced objects.

14

Controlling User Access

This topic covers how Oracle separates system privileges from privileges on specific database objects. Candidates must identify the appropriate privilege scope and grant access to tables or table columns without granting unnecessary rights.

Question 35 of 41 Single Choice

A reporting analyst must create summary tables in the analyst’s own schema and query the HR.PAYROLL table owned by HR. The database administrator has already provided the required tablespace quota. The analyst must not receive access to other HR tables or a privilege to create tables in another schema.

Which pair of grants provides the required access?

Show Answer

Correct Answer

A

Option A is correct because CREATE TABLE is a system privilege that permits creation in the user’s own schema, and SELECT on HR.PAYROLL is an object privilege for that specific table. Option B uses invalid grant forms. Option C names no valid CREATE system privilege. Option D does not identify the HR table.

Question 36 of 41 Multiple Choice

An application account must add rows to HR.REQUESTS and change the STATUS value of existing rows. It must not update any other column, and the security team will not approve privileges that apply across schemas. The account has no current grants on this table, and the DBA wants to issue only the object privileges needed.

Choose two. Which grants give APP_USER the required access to HR.REQUESTS?

Select 2 answers, then check them.

Show Answer

Correct Answer

A, C

Options A and C are correct because they grant INSERT on the specified table and UPDATE only on its STATUS column. Option B gives a broad system privilege for inserting into tables in other schemas. Option D permits updates to every column. Option E omits the required ON clause naming the table.

15

Managing Objects with Data Dictionary Views

Oracle data dictionary views provide metadata about database objects and the schemas that own or can access them. Candidates must choose views with the appropriate scope and use their metadata to inspect objects, columns, and object status.

Question 37 of 41 Single Choice

A release engineer is preparing a validation report while connected to the APP_OWNER schema. After a deployment, the team needs to confirm that constraints on its application tables are enabled and identify their types. The engineer must use ordinary data dictionary access, avoid reporting constraints from other schemas, and produce the results without querying application tables.

Which data dictionary view should the developer query to obtain the constraint type and status for the tables owned by the connected user?

Show Answer

Correct Answer

A

Option A is correct because USER_CONSTRAINTS reports constraint types and statuses for constraints on tables owned by the connected user. Option B is not correct because USER_CONS_COLUMNS identifies columns associated with constraints, but does not provide their status. Option C can include constraints from other accessible schemas. Option D reports table metadata, not constraint details.

Question 38 of 41 Single Choice

During a release review, the PAYROLL_APP team must confirm when its PAYROLL_CLOSE procedure and PAY_RUN table were last changed after an emergency patch. The audit report needs the object names, object types, and last DDL timestamps for these two owned objects. The engineer is connected as PAYROLL_APP, has no access to DBA views, and must not query application data or inspect source text.

Which dictionary view provides the required metadata?

Show Answer

Correct Answer

A

Option A is correct because USER_OBJECTS includes object names, types, and LAST_DDL_TIME for objects owned by PAYROLL_APP. Option B is not correct because USER_TABLES does not provide the required last DDL timestamp for both object types. Option C is not correct because USER_SOURCE contains stored source text, not the required object metadata. Option D is not correct because USER_TAB_COLUMNS describes table columns.

Question 39 of 41 Multiple Choice

A release engineer is reviewing a reporting table through USER_TABLES after a nightly load. The table had 1.8 million rows at the last approved count, but the current load process may have added records. NUM_ROWS is 1,800,000 and LAST_ANALYZED is three days old. The reporting team will not run a count query during this review, and the engineer can request that table statistics be gathered.

Choose two conclusions that are supported by the dictionary information described in the scenario.

Select 2 answers, then check them.

Show Answer

Correct Answer

A, E

Options A and E are correct because NUM_ROWS reflects collected table statistics, and gathering statistics can refresh that value and LAST_ANALYZED without changing rows. Option B is not correct because LAST_ANALYZED records statistics collection, not the latest DML. Option C is not correct because NULL can mean statistics were not collected. Options D and F are not correct because these values are not guaranteed live row counts.

16

Managing Data in Different Time Zones

This topic covers Oracle date and timestamp values that use the session time zone, as well as intervals for representing periods of time. Candidates must distinguish the return types of the current-time expressions and choose interval types that preserve the intended calendar or elapsed-time meaning.

Question 40 of 41 Single Choice

A support team connects to an Oracle database whose database time zone is UTC. The team session is configured for a time zone five hours behind UTC. A report needs the current local date, a timestamp that retains its time-zone information, and a local timestamp value without time-zone information. The report must use the session setting, not the database setting.

Which description correctly identifies the values these expressions return?

Show Answer

Correct Answer

A

Option A is correct because CURRENT_DATE returns a DATE and CURRENT_TIMESTAMP returns a TIMESTAMP WITH TIME ZONE, both based on the session time zone, while LOCALTIMESTAMP returns a TIMESTAMP without a time zone in that same session zone. Option B is not correct because the database time zone does not determine these values. Option C swaps return types. Option D assigns the wrong types to the timestamp expressions.

Question 41 of 41 Multiple Choice

A subscription platform records an 18-calendar-month service term for each contract. Its maintenance scheduler also records a fixed outage window of exactly two days and three hours. The database must retain the month-based term without converting it to an assumed number of days, and the outage duration must remain a day-and-time interval for arithmetic with timestamp values.

Choose two interval expressions that meet the requirements in the scenario.

Select 2 answers, then check them.

Show Answer

Correct Answer

A, B

Options A and B are correct because an 18-month calendar term uses YEAR TO MONTH interval semantics, while adding two DAY TO SECOND intervals expresses exactly two days and three hours. Option C is not correct because 540 days is a fixed duration, not 18 calendar months. Option D uses months instead of hours. Option E represents 18 years. Option F adds minutes instead of hours.

Continue Your 1Z0-071 Preparation

You have seen 41 questions from a full set of 326. Prepare with the 1Z0-071 dumps PDF and the Web-Based Practice Test.

PDF

  • Compatible with All Devices
  • Printable Format
  • No Download Limits

Practice Test

  • Check your timing and weak areas
  • No Practice Limits
  • Regularly Updated
Get Full Access
  • 100% Money-Back Guarantee
  • 90 Days Free Updates
  • Instant Access

Frequently Asked Questions

Which SQL topics tend to demand the most careful reasoning on Oracle 1Z0-071?

Queries involving multiple tables can be demanding because the join condition determines which rows appear, and outer joins must preserve unmatched rows when required. Subqueries add another layer, since you need to distinguish single-row results from multiple-row results and recognize when a correlated subquery is appropriate. Practise translating each reporting requirement into a row-preservation rule, then check that the join and subquery logic follows it.

Why can expressions involving NULL, conversions, and dates be easy to misread?

Oracle SQL expressions can return a different result or data type than a quick reading suggests. Arithmetic with NULL, implicit versus explicit conversion, and conditional expressions all affect what a query returns. Date and timestamp expressions add distinctions between session time zone values and intervals that represent calendar periods or elapsed time. Work through expressions one operation at a time and write down the expected value and type before choosing an answer.

Why does knowing SQL syntax sometimes fail to prepare candidates for the query questions?

Knowing the syntax is only part of the work. You also need to predict the rows returned, account for operator precedence, and understand how clauses such as HAVING affect grouped results. Candidates often recognize a command but overlook its effect on the result set. The Exam4Success Practice Test can help you practise applying concepts under timed conditions and identify topics that need review. After each attempt, explain why the alternatives do not meet the stated requirement.

What preparation gap commonly affects candidates who focus only on SELECT queries?

A SELECT-heavy study plan can leave important Oracle-specific material underprepared. The topics also cover DML and transaction control, DDL constraints, views, privileges, indexes, sequences, synonyms, and data dictionary views. SQL*Plus DEFINE and VERIFY behavior can be overlooked as well. The Exam4Success PDF is useful for reviewing these areas away from a database environment. Make a checklist from the full topic list and give each non-query area deliberate study time.

What practical SQL capability does this exam help candidates develop?

The topics build skills for reading and writing Oracle SQL across common database tasks. That includes retrieving and summarizing data, combining tables, changing rows safely, defining table relationships, and checking database metadata. These capabilities are useful when supporting reports or working with application data in an Oracle environment. To connect study with work, take a familiar reporting need and outline the query, joins, filters, and grouping it would require.

How can preparation for 1Z0-071 support broader Oracle database learning?

The syllabus connects query writing with the structures and controls that queries rely on. Studying tables, constraints, views, object privileges, and data dictionary views can make later database administration or development learning easier to place in context. The exam topics alone do not establish a particular career path or next certification, but they provide a practical base in Oracle SQL. Identify which topics relate to your current responsibilities and practise those with realistic data examples.

How can I judge whether I am ready to schedule my preparation around this exam?

Readiness is easier to assess by topic than by confidence alone. Check whether you can write and interpret queries using joins, group functions, set operators, and subqueries, then assess DML, DDL, privileges, and time-zone expressions separately. The Exam4Success Practice Test can help expose weak areas and show how consistently you apply the rules under time pressure. Review missed concepts, then revisit a similar task without relying on the answer choices.

What should I study first if I am beginning Oracle Database SQL preparation?

Start with relational concepts and basic SELECT statements, including expressions, aliases, DISTINCT, and NULL behavior. Then add restrictions and sorting, followed by single-row functions and conversions. This sequence gives you a foundation for aggregates, joins, and subqueries, where several rules must work together. Keep a written record of expressions that return unexpected values, especially date calculations and NULL handling. Use those examples as a focused review list instead of rereading familiar material.

Exam4Success is an independent exam preparation provider and is not affiliated with or endorsed by Oracle.