Q1
True / FalsePostgreSQL is an open-source relational database management system (RDBMS).
PostgreSQL is indeed an open-source RDBMS that is widely used for managing relational databases.
Q2
True / FalsePostgreSQL cannot be used for storing unstructured data.
PostgreSQL supports unstructured data through JSON and JSONB data types, allowing it to handle both structured and unstructured data.
Q3
True / FalseThe default port for PostgreSQL is 3306.
The default port for PostgreSQL is 5432. Port 3306 is used by MySQL.
Q4
True / FalsePostgreSQL supports advanced data types such as arrays, hstore, and JSON.
PostgreSQL has robust support for various advanced data types, including arrays, hstore, and JSON, enhancing its flexibility in handling complex data.
Q5
True / FalsePostgreSQL does not support ACID (Atomicity, Consistency, Isolation, Durability) transactions.
PostgreSQL fully supports ACID transactions, ensuring reliable and consistent data handling.
Q6
True / FalsePostgreSQL's procedural language PL/pgSQL allows for the creation of functions and triggers.
PL/pgSQL is a powerful procedural language in PostgreSQL that enables users to write functions and create triggers for automating tasks.
Q7
True / FalsePostgreSQL has built-in support for full-text search capabilities.
PostgreSQL includes powerful full-text search capabilities, which can be used to index and search text efficiently within the database.
Q8
True / FalsePostgreSQL's foreign data wrappers (FDW) allow it to query data from other databases, including non-relational ones.
PostgreSQL's FDW feature allows it to interact with various external data sources, including other SQL databases and non-relational databases, by using the appropriate wrapper.
Q9
True / FalsePostgreSQL does not support partitioning tables.
PostgreSQL supports table partitioning, which can improve performance and manageability for large datasets.
Q10
True / FalsePostgreSQL's MVCC (Multiversion Concurrency Control) mechanism helps in achieving high concurrency and performance in transactional workloads.
PostgreSQL uses MVCC to manage concurrent transactions efficiently, allowing for high levels of concurrency and performance by maintaining multiple versions of data.
Q22
Multiple ChoiceWhich of the following queries correctly handles data storage for an application software module in PostgreSQL?
SQL Code
INSERT INTO app_storage
SELECT id, name, data_size
FROM application_data
WHERE data_size > 100;
This query inserts data from the application_data table into app_storage based on the data_size. The WHERE clause filters only records with a data size greater than 100.
Q28
Multiple ChoiceWhich PostgreSQL statement is correctly used to create a view for application software data?
SQL Code
CREATE VIEW app_summary AS
SELECT app_id, app_name, COUNT(*) AS total_usage
FROM app_usage_logs
GROUP BY app_id, app_name;
This command creates a view named app_summary that aggregates data from the app_usage_logs table by app_id and app_name.
Q30
Multiple ChoiceChoose the correct PostgreSQL command for joining two tables related to application software data.
SQL Code
SELECT a.app_id, a.app_name, u.usage_count
FROM applications a
JOIN usage_stats u
ON a.app_id = u.app_id;
This query performs an inner join between the applications and usage_stats tables based on the app_id column.