




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Similar to the Python version but focused on Java-based frameworks such as Hadoop, Spark, Kafka, and Spring Cloud. The exam validates Java programming for large-scale data pipelines, batch/stream processing, and integration with cloud platforms. Adapted to regional requirements in Asia.
Typology: Exams
1 / 189
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1. Which Java keyword is used to implement encapsulation by restricting access to class members? A) public B) private C) static D) final Answer: B Explanation: The 'private' keyword restricts access to class members, enabling encapsulation by hiding internal details from outside classes. Question 2. In Java, which data type is used to store a single character? A) String B) int
C) char D) boolean Answer: C Explanation: The 'char' data type in Java is used to store a single Unicode character. Question 3. Which collection implementation provides constant-time performance for basic operations like add, remove, and contains? A) LinkedList B) HashSet C) TreeMap D) ArrayList Answer: B
Question 5. Which method must be implemented when creating a custom exception in Java? A) toString() B) handle() C) getMessage() D) The constructor of the Exception class Answer: D Explanation: Custom exceptions typically extend Exception or RuntimeException and must call the superclass constructor. Question 6. Which Java class is used for reading text from a file in a buffered manner? A) FileInputStream
B) BufferedReader C) FileReader D) Scanner Answer: B Explanation: BufferedReader reads text efficiently by buffering characters, making it suitable for reading large text files. Question 7. Which interface should be implemented to create a task that can return a result and be executed asynchronously? A) Runnable B) Callable C) ExecutorService D) Future
Question 9. Which Java version introduced Virtual Threads as part of Project Loom? A) Java 8 B) Java 11 C) Java 17 D) Java 19 (Preview) Answer: D Explanation: Virtual Threads were introduced as a preview feature in Java 19 to improve lightweight concurrency. Question 10. Which build automation tool is primarily used for Java projects to manage dependencies and build processes? A) Maven
B) Gradle C) Ant D) All of the above Answer: D Explanation: Maven, Gradle, and Ant are all used for build automation in Java, with Maven and Gradle being the most popular today. Question 11. Which cloud service model provides virtualized hardware resources over the internet? A) IaaS B) PaaS C) SaaS D) FaaS
Question 13. In AWS, which service is primarily used for serverless compute functions? A) EC B) Lambda C) EKS D) ECS Answer: B Explanation: AWS Lambda enables running code without provisioning or managing servers, making it ideal for serverless architectures. Question 14. Which GCP service provides managed Kubernetes clusters? A) Compute Engine
B) Cloud Functions C) GKE D) App Engine Answer: C Explanation: Google Kubernetes Engine (GKE) is a managed service for deploying, managing, and scaling containerized applications with Kubernetes. Question 15. In Azure, which service is used to deploy containerized applications using Kubernetes? A) Virtual Machines B) Azure Functions C) AKS
Explanation: VPC (AWS) or VNet (Azure) creates an isolated virtual network within the cloud provider's infrastructure. Question 17. Which principle ensures users are granted only the permissions necessary to perform their tasks? A) Principle of Least Privilege B) Default Allow Policy C) Role-Based Access Control D) Open Access Policy Answer: A Explanation: The Principle of Least Privilege restricts access rights to only what is necessary, enhancing security.
Question 18. Which cloud-native monitoring service is used in AWS for resource and application monitoring? A) CloudWatch B) Stackdriver C) Azure Monitor D) DataDog Answer: A Explanation: AWS CloudWatch provides monitoring and observability for AWS resources and applications. Question 19. Which cloud storage service is designed for storing large amounts of unstructured data like images, videos, and backups? A) Relational Database
Answer: C Explanation: Storage classes in S3 (e.g., Standard, Infrequent Access, Glacier) allow cost optimization based on how frequently data is accessed. Question 21. In Java, which method is used to serialize an object? A) readObject() B) writeObject() C) serialize() D) toString() Answer: B Explanation: The writeObject() method is used during serialization to write an object's state to a stream.
Question 22. Which JDBC driver type is used for connecting to a database via a thin driver over TCP/IP? A) Type 1 B) Type 2 C) Type 3 D) Type 4 Answer: D Explanation: Type 4 JDBC drivers are pure Java drivers that communicate directly over TCP/IP with the database. Question 23. Which NoSQL database model is optimized for storing and querying graph data? A) Key-Value
Answer: A Explanation: DynamoDB is a fully managed NoSQL key-value and document database service offered by AWS. Question 25. Which GCP service is a serverless data warehouse supporting SQL queries over large datasets? A) BigQuery B) Cloud SQL C) Cloud Spanner D) Cloud Dataflow Answer: A Explanation: Google BigQuery is a serverless, scalable data warehouse that supports standard SQL queries.
Question 26. Which Java Stream API method is used to perform an operation on each element of a collection? A) map() B) filter() C) forEach() D) collect() Answer: C Explanation: The forEach() method performs an action on each element of a stream. Question 27. Which Java feature allows passing behavior as a parameter? A) Generics