Oracle 1z0-882 Exam Practice Questions (P. 1)
- Full Access (100 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #1
The application logs contain many entries of the following:
ERROR 1153 (OSSO1): Got a packet bigger than max_allowed_packet bytes
With two scenarios can (Hibernate this error message?
ERROR 1153 (OSSO1): Got a packet bigger than max_allowed_packet bytes
With two scenarios can (Hibernate this error message?
- AThe application tried to INSERT a row that exceeded max_allowed_packet.
- BThe network caused an error Inducing the max_allowed_packet error.
- CThe application did not use the COMPRESS () function for a large result set.
- DThe application tried to SELECT many rows together that exceeded max__allowed_packet.
- EThe application tried to SELECT a row that exceeded max_allowed_packet.
- FThe operating system caused an error inducing the max_allowed_packet error.
Correct Answer:
AF
AF
send
light_mode
delete
Question #2
Which two Functions can be used in a C program to retrieve information about warning?
- Amysql_info
- Bmysql_error
- Cmysql_warning_count
- Dmysql_errno
Correct Answer:
AC
http://dev.mysql.com/doc/refman/5.6/en/c-api-function-overview.html
AC
http://dev.mysql.com/doc/refman/5.6/en/c-api-function-overview.html
send
light_mode
delete
Question #3
You wish to create a trigger on the ‘city’ table that will check the value of the ‘District’ field before any INSERT. The trigger needs to change it to" Unknown" for an empty string or NULL.
CREATE TRIGGER City_bi -
BEFORE INSERT ON CITY -
FOR EACH ROW -
BEGIN -
IF OLD. District IS NULL OR OLD.District= . .
THEN -
SET NEW.District=Unknown;
END IF :
END;
Does the CREATE TRIGGER statement accomplish this goal?
CREATE TRIGGER City_bi -
BEFORE INSERT ON CITY -
FOR EACH ROW -
BEGIN -
IF OLD. District IS NULL OR OLD.District= . .
THEN -
SET NEW.District=Unknown;
END IF :
END;
Does the CREATE TRIGGER statement accomplish this goal?
- AYes; the trigger works correctly.
- BNo; FOR EACH ROW is invalid syntax.
- CNo; the syntax should be CREATE TRIGGER city-bi ON city BEFORE INSERT….
- DNo; the OLD keyword cannot be used in an INSERT trigger.
Correct Answer:
D
D
send
light_mode
delete
Question #4
The tab-delimited file"/tmp/people,txt contains:
1636 Carsten Pederson Denmark
4672 Kai Voigt Germany
4628 Max Mether France
This is the structure of the people table:
Mysq1> DESCRIBE people;

Which statement will load the first and last names into the Names column and the country into the country column?
1636 Carsten Pederson Denmark
4672 Kai Voigt Germany
4628 Max Mether France
This is the structure of the people table:
Mysq1> DESCRIBE people;

Which statement will load the first and last names into the Names column and the country into the country column?
- ALOAD DATA INFILE ‘/tmp/people.txt’INTO TABLE PEOPLE@First=$2. @Last=$3 @Country=$4 (CONCAT (@First, ‘ ‘,@Last) , @ Country)
- BLOAD DATA INFILE /tmp/people.txt INTO TABLE People @Skip=$1 , @ First=$2, @Last=$3, @ Country=4, (CONCAT (@First, .@ Last) , @ Country)
- CLOAD DATA INFILE /tmp/people.txt INTO TABLE People (@ Skip, @First , @Last, @Country SET Name=CONCAT (@First, ,@Last)
- DLOAD DATA INFILE /tmp/people,txt, INTO TABLE People. (@Skip. @First, @Last, @Country) Country=@country
- EIt is not possible to load the data from the file/tmp/people.txt into the people table, as shown.
Correct Answer:
C
C
send
light_mode
delete
Question #5
What are two ways in which normalizing your tables helps improve performance In MySQL?
- ASmaller table sizes and row lengths improve sorting operations.
- BSeparate tables allow indexing more columns.
- CFewer nullable column improve index usage.
- DNormalizing Improves the performance of innodb_file_per _table.
Correct Answer:
D
D
send
light_mode
delete
All Pages