Salesforce interview questions

1. What is Salesforce? Answer: Salesforce is a company which provides a web-based tool called Salesforce Salesforce by following the Cloud Computing approach, providing SAAS and PAAS SAAS: Providing Sales, Marketing and Call Center applications as a service PAAS: Platform as a Service, This is a category of cloud computing that provides a platform and environment to allow developers to build applications and services over the internet. 2. What is the benefit of Salesforce CRM? Answer: Here are some of the top benefits of Salesforce CRM Ensuring faster and better sales opportunity. Deploying an analytical approach to customer acquisition. Reducing cost and improving customer satisfaction. Automation of repetitive and less important tasks. Improved efficiency and enhanced communication on all fronts. 3. Explain the advantages of Salesforce SaaS functionality? close Answer: Some of the main benefits of Salesforce SaaS are: A pay-as-you-go model perfectly suited for all customers. No hassle of infrastructure management. All applications are accessed via internet. Easy integration between various applications. Latest features are provided without any delay. Guaranteed uptime and security. Scalable performance for various operations. Ability to access via mobile devices from anywhere. 4. What is a custom object in Salesforce? Answer: A record is analogous to a row in a database table. Objects already created for you by Salesforce are called standard objects. Objects you create in your organization are called custom objects. Objects you create that map to data stored outside your organization are called external objects. 5. Explain the various dashboard components? Answer: The various Dashboard components are explained below: Chart: it is used for showing data graphically. Gauge: it is used for showing a single value within a range of custom values. Metric: This is used for displaying a single key-value – it is possible to click empty text field next to grand total and enter the metric label directly on components. All metrics placed above and below one another in dashboard column. The various Dashboard components are explained below: Would be displayed as a single component. Table: Showing report data in column form using the Table. Visual force Page: It is used for creating a custom component or showing information not available in another component type. Custom S – component: this contains the content that is run or displayed in a browser like Excel file, ActiveX Control, Java applet or custom HTML web form. 6. What does a custom object permit the user to do? Answer: Once the custom object is defined, the subscriber can perform the following tasks: Create custom fields, relate the custom object to other records, track events and tasks, build page layouts, create a custom tab for the custom object, analyze custom object data and create dashboards and reports, share custom tabs, custom apps, custom objects, and various other related components. None of these tasks can be accomplished until the custom object has a definition. 7. Explain the various Standard Profiles in Salesforce? Answer: System Administrator – Customization and administration of the application. Standard User – Can edit, view, update or delete one’s own record. Read Only – Able to just view the records. Solution Manager – Comes with standard user permission but also can manage categories and published solutions. Marketing User – Is able to import leads into the organization along with standard user permissions. 8. What is Object Relationship Overview? Answer: In Salesforce, the object relationship overview links custom object records to standard object records in a related list. This is helpful to track product defects in related customer cases. Salesforce allows users to define different types of relationships by creating custom relationship fields on an object. 9. What does it indicate if an error state this “list has no rows for assignment”? Answer: The error that tells “list has no rows for assignment” indicates that the list you are trying to access has no values in it. 10. What is a Visualforce Page? Answer: Visualforce is the new markup language from salesforce, by using which, We can render the standard styles of the salesforce. We can still use HTML here in Visualforce. Each visualforce tag always begins with “apex” namespace. All the design part can be accomplished by using Visualforce Markup Language and the business logic can be written in custom controllers associated with the Page. 11. What is a Wrapper Class? Answer: A Wrapper Class is a class whose instances are a collection of other objects and is used to display different objects on a Visual force page in the same table. 12. What is Production? Answer: We should not make coding changes in production since end-users are using the application from the production environment. 13. What is the difference between SOQL and SOSL? Answer: SOQL is Salesforce Object Query Language and SOSL is Salesforce Object Search Language. If you are sensing that Salesforce is a culture unto itself, you are correct! 14. What is sandbox? Answer: To make any changes for the exiting application we should copy all contents of the product into the sandbox and make all changes after that test thoroughly and move those changes into production. To create the sandbox, in production we can find one link called sandboxes. By clicking on that link we can create the sandbox by choosing the type of the sandbox. 15. What is the sharing rule? Answer: The sharing rules are applied when a user wishes to allow access to other users. These 23 most common questions and answers will help you prepare effectively and perform well in Salesforce interviews. Study them thoroughly to make a good impression on your prospective employers. Learn From Real-Time Experts. 16. What are the types of Sandboxes? Answer: Developer Sandbox Developer pro sandbox Partial data sandbox Full copy sandbox 17. Explain the Salesforce dashboard? Answer: In Salesforce, the dashboard is a pictorial representation of the report. 20 reports can be added to a single dashboard. 18. What is Developer sandbox? Answer: It copies only configuration changes from the production It won’t copy real-time data We can test the configuration changes with sample data The refresh time interval is one day If we refresh all the sandbox contents will be replaced with production Contents 19. What is an Audit Trail? Answer: The Audit Trail function in Salesforce is useful for gaining information or for tracking all the recent setup changes that the administration has done in the organization. The audit trail can preserve data for up to six months. 20. What is developer pro sandbox? Answer: Copy configuration changes No real-time data Sample data limit is 1GB Refresh time interval one day 21. What is the junction object and what purpose does it serve? Answer: Junction objects are used to build many-to-many relationships between objects. For example, the user can take a recruiting application where a position for a job can be linked to many candidates or can take a candidate and link the candidate to many other jobs. In order to connect the data model, a third party object is referred to as a junction object. In the given example, the junction object is “job application.” 22. What is partial data sandbox? Answer: Copy configuration changes Copy a certain amount of real-time data Real-time data limit is 5GB For each table, it can copy a maximum of 10k records Refresh interval of 5 days 23. Is it possible to schedule a dynamic dashboard in Salesforce? Answer: It is not possible to schedule a dynamic dashboard in Salesforce. 24. What is Full copy sandbox? Answer: It is exact replica of the production Copy both configuration and entire real-time data from the production Refresh time interval 29 days Salesforce Online Training 25. What are the different types of reports available in Salesforce? Answer: The different types of reports in Salesforce are: Tabular report that displays the grand total in table form. Matrix report where grouping is based upon both rows and columns. Summary reports that are detailed reports in which the grouping is based on columns. Joined report which allows two or more reports to be joined in a single report. 26. What is Track Field History? Answer: While creating the object, we can enable ‘Track Field History’. If, we enable ‘Track Field History’ user can see ‘Set History Tracking’ button under ‘Custom Fields & Relationships’ section which is available on the object detail page. By clicking on ‘Set History Tracking’ button, we can enable tracking for the fields whichever we want. To see the object history, go to object’s record layout and add Object Name History related list to the layout. Whenever the user changes field value from one value to another value, it will show the history of the field in ‘Object History’ related list. 27. What are the three types of object relations in Salesforce? Answer: The three types of object relations in Salesforce are: One-to-many Many-to-many Master-detail The relation types are quite logical once the user becomes familiar with the software program. 28. What are the Activities in Salesforce? Answer: To create the Activities while creating the object, we should check for ‘Allow Activities’ checkbox then the user can add open Activities and Activity History related lists on the Object layout. There are two types of activities Task: Task is nothing but work assigned to a particular person, it doesn’t have a certain time limit. Event: It has a certain time limit in that time only all persons should assemble after the time limit over, the event will get complete. Once the event or task status changed to ‘Completed’ this we can see those records under Activity History Related List. 29. What is a static resource in Salesforce? Answer: With Salesforce’s static resource, subscribers can upload zip files, images, jar files, JavaScript, and CSS files that can be referred in a Visual force page. The optimum size of static resources in Salesforce is 250 MB. 30. How to rename the tab? Answer: Tab name will be decided based on the Plural Label of the custom object, to rename go to a corresponding object detail page and rename the plural label. 31. What is the difference between Trigger and Workflow? Answer: Workflow is an automated process that fire an action based on evaluation criteria and rule criteria. As described above, Trigger is the code that is executed on or after the record is updated or inserted. 32. How to display multiple columns after clicking on the tab? Answer: ISNULL (): It works only for number data type fields, if we don’t populate with value for number fields it will return true. ISNULL (): It won’t support TEXT data type fields because text fields never become null. ISBLANK (): It supports both numbers as well as text data types. 33. What is the trigger? Answer: A trigger is a lever which, when pulled by the finger, releases the hammer on a firearm. In a database, a trigger is a set of Structured Query Language statements that automatically “fires off” action when a specific operation, such as changing data in a table, occurs. A trigger consists of an event and an action. Triggers are used to preserve data integrity by checking on or changing data in a consistent manner. 34. What is a dependent picklist? Answer: In some scenario’s, we should be able to control one of the fields from another field. Example, if we select Country Controlling field as the US then City should display only US cities. We can use checkbox data type fields also while creating dependent picklist. We can use multi-select data type fields also while creating dependent picklist. 35. How does Salesforce track sales? Answer: Salesforce is a tracking program that records a number of helpful basic details, such as: Number of customers served daily Daily sales volume Detailed reports from Sales Manager Sales figures by month or quarter Most importantly, Salesforce tracks and reports repeat customer activity, which is the key to any sales organization. 36. What is the architecture of the Salesforce? Answer: MVC Architecture – Model, View, Controller View – It is the user interface Controller – Business Logic Model – It is the Database, which stores Schema 37. What can cause data loss in Salesforce? Answer: Data loss in Salesforce can be caused by a number of reasons, including: Changing data and date-time Migrating to percent, number, and currency from other data types Changing from the multi-select picklist, checkbox, the auto number to other types Altering to multi-select picklist from any type except picklist Changing to auto-number except for the text Changing from text-area to e-mail, phone, URL, and text. 38. What is the difference between 15 digit and 18 digit id in Salesforce? Answer: In Salesforce, whenever a user creates any component or record then sales force will generate a unique id with which user can identify the record or component. After creating the record, in the URL user can see the id of the record which is of 15 digits length. Through user interface user always see 15 digit ids which are Cases-Sensitive. If the user queries the existing records from the database through API, it will always return 18 digit ids which are Case-Insensitive. Last 3 digits of the 18 digit represent checksum of the capitalization of 15 digit id. Based on the first 3 digits user can identify the object of the record. All the record belongs to the same object will contain the same first 3 digits. 39. What is Self-Relationship? Answer: A Self-Relationship is a lookup relationship to the same object. It is this premise that allows users to take the object “Merchandise” and create relationships with another object. 40. What is Record Type? Answer: For an object based on the Record Type, we can show different fields and different picklist values by assigning different page layouts for the record types and profiles. After creating the record type, on the record type detail page user can see all the picklist data type fields, user can edit the picklist and decide which values should display for this particular record type. 41. What are the different data types that a standard field record name can have? Answer: A standard field record name can have a data type of either auto number or text field with a limit of 80 chars. For generating auto numbers, the format needs to be specified while defining the field and after that for every record that is added, the number will get auto-generated. For example:- Sr No-{1} Sr No-{2} Sr No-{3} 42. What is the difference between detail page and edit page? Answer: Whenever a user tries to create a new record or edit an existing record user can input the values for the fields, this page is nothing but edit page. After creating a new record or editing an existing record, the user can see the information of the record; this page is nothing but detail page. 43. What are who Id and What Id in activities? Answer: Who ID refers to people. Typically: contacts or leads. Example: Lead ID, Contact ID What ID refers to objects. Example: Account ID, Opportunity ID 44. What are the types of tabs? Answer: Custom tabs: Its create for objects Web tabs: Its create to display a website Visual force tabs: It creates to display the visual force page 45. What is the use of writing sharing rules? Can you use sharing rules to restrict data access? Answer: Sharing rules are written to give edit access (public read and write) or public read-only access to certain individuals in Salesforce org. A classic example is when: – only your managers or superiors need to be given extra credentials to your records in objects as compared to your peers. By default, all users in your organization will have organization-wide-default sharing settings of either Public Read Only or Private. To give access to more records, which users do not own, we write sharing rules. Example: Sharing rules are used to extend sharing access to users in public groups or roles. Hence, sharing rules are not as strict as organization-wide default settings. They allow greater access for those users. As far as the second part of the question is concerned, the answer is no. We cannot use sharing rules to restrict data access. It is only used for allowing greater access to records 46. What is the validation rule Answer: While creating or modifying the record based on the certain conditions we can display error messages on top of the page or below to the field. 47. There are two fields if the user populates two field values if we combine those values uniqueness should be maintained, how to achieve this without coding? Answer: Create a unique text field and update the field from workflow rule after the update again all the system validations will be performed so the error will be displayed. 48. What is a bucket field in reports? Answer: A bucket field lets you group related records together by ranges and segments, without the use of complex formulas and custom fields. Bucketing can thus be used to group, filter, or arrange report data. When you create a bucket field, you need to define multiple categories (buckets) that are used to group report values. The advantage is that earlier, we had to create custom fields to group or segment certain data. 49. What are Governor Limits? Answer: Since we are working in a multitenant environment Sales force is enforcing the limits for all the functionalities. How many no of fields for an object: 500 No of master-detail relationships for an object: 2 No of lookup relationship for an object: 25 No of rollup summary fields: 25 How many external ids we can enable for an object: 7 50. Can you have a roll-up summary field in case of Master-Detail relationship? Answer: Yes, you can have a roll-up summary in case of a master-detail relationship. But not in case of a lookup relationship. A roll-up summary field is used to display a value in a master record based on the values of a set of fields in a detailed record. The detail record must be related to the master through a master-detail relationship. There are 4 calculations that you can do using the roll-up summary field. You can count the number of detail records related to a master record. Or, you can calculate the sum, minimum value, or maximum value of a field in the detail records. Note: Browse Latest salesforce interview questions and salesforce tutorials. Here you can check Salesforce Training details and salesforce Learning videos for self learning. Contact +91 988 502 2027 for more information. AWS Interview Questions And Answers : The AWS Solution Architect Purpose: With concerns to AWS, a Solution Architect would outline and describe AWS architecture for subsisting methods, moving them to cloud architectures as well as elaborating professional road-maps for prospective AWS cloud implementations. So, in this AWS Architect interview questions blog, in all segment, we will begin with the fundamentals and later lead our way ahead to further technological questions, toward the best learning experience please indicate the questions in series so that the thoughts for the following question will be apparent in the first. This page comprises the number of Amazon Web Services the top AWS Interview Questions and Answers (FAQs) below level AWS. Certain questions are accumulated from different sources like educational websites, blogs, forums, discussion boards including Wikipedia. These scheduled questions can definitely help in preparing for the AWS interview job. 1. What is AWS Lambda? Answer: AWS Lambda is a compute service that lets you run code in the AWS Cloud without provisioning or managing servers. 2. What is a Serverless application in AWS? Answer: The AWS Serverless Application Model (AWS SAM) extends AWS CloudFormation to provide a simplified way of defining the Amazon API Gateway APIs, AWS Lambda functions, and Amazon DynamoDB tables needed by your serverless application. 3. What is the use of Amazon ElastiCache? Answer: Amazon ElastiCache is a web service that makes it easy to deploy, operate, and scale an in-memory data store or cache in the cloud. 4. Differentiate between stopping and terminating an instance? Answer: When an instance is stopped, the instance performs a normal shutdown and then transitions to a stopped state. When an instance is terminated, the instance performs a normal shutdown, then the attached Amazon EBS volumes are deleted unless the volume’s delete on termination attribute is set to false. 5. Give one instance where you would prefer Provisioned IOPS over Standard RDS storage? Answer: When you have batch-oriented workloads. These are some of the popular questions asked in AWS architect interviews. Always be prepared to answer all types of questions — technical skills, interpersonal, leadership or methodology. If you are someone who has recently started your career in cloud computing, you can always get certified in one of the technical courses like AWS Architect to get the requisite knowledge and skills. 6. What Automation Tools Can I Use To Spin Up Servers? Answer: The most obvious way is to roll-your-own scripts, and use the AWS API tools. Such scripts could be written in bash, Perl or another language or your choice. The next option is to use configuration management and provisioning tools like puppet or better it’s successor Opscode Chef. You might also look towards a tool like Scalr. Lastly, you can go with a managed solution such as Rightscale. 7. Explain How You Would Simulate Perimeter Security Using The Amazon Web Services Model? Answer: Traditional perimeter security that we’re already familiar with using firewalls and so forth is not supported in the Amazon EC2 world. AWS supports security groups. One can create a security group for a jump box with ssh access – only port 22 open. From there a webserver group and database group are created. The webserver group allows 80 and 443 from the world, but port 22 *only* from the jump box group. Further, the database group allows port 3306 from the webserver group and port 22 from the jump box group. Add any machines to the webserver group and they can all hit the database. No one from the world can, and no one can directly ssh to any of your boxes. 8. How To Use Amazon Sqs? Answer: Amazon SQS (Simple Queue Service) is a message passing mechanism that is used for communication between different connectors that are connected with each other. It also acts as a communicator between various components of Amazon. It keeps all the different functional components together. This functionality helps different components to be loosely coupled, and provide an architecture that is more failure resilient system. 9. What kind of network performance parameters can you expect when you launch instances in a cluster placement group? Answer: The network performance depends on the instance type and network performance specification, if launched in a placement group you can expect up to 10 Gbps in a single-flow, 20 Gbps in multi-flow i.e full duplex Network traffic outside the placement group will be limited to 5 Gbps(full-duplex). 10. To deploy a 4 node cluster of Hadoop in AWS which instance type can be used? Answer: First let’s understand what actually happens in a Hadoop cluster, the Hadoop cluster follows a master-slave concept. The master machine processes all the data, slave machines store the data and act as data nodes. Since all the storage happens at the slave, a higher capacity hard disk would be recommended and since master does all the processing, a higher RAM and a much better CPU is required. Therefore, you can select the configuration of your machine depending on your workload. For e.g. – In this case, c4.8xlarge will be preferred for master machine whereas for slave machine we can select i2.large instance. If you don’t want to deal with configuring your instance and installing Hadoop cluster manually, you can straight away launch an Amazon EMR (Elastic Map Reduce) instance which automatically configures the servers for you. You dump your data to be processed in S3, EMR picks it from there, processes it, and dumps it back into S3. 11. Where do you think an AMI fits, when you are designing an architecture for a solution? Answer: AMIs(Amazon Machine Images) are like templates of virtual machines and an instance is derived from an AMI. AWS offers pre-baked AMIs which you can choose while you are launching an instance, some AMIs are not free, therefore can be bought from the AWS Marketplace. You can also choose to create your own custom AMI which would help you save space on AWS. For example, if you don’t need a set of software for your installation, you can customize your AMI to do that. This makes it cost-efficient since you are removing the unwanted things. 12. How do you choose an Availability Zone? Answer: Let’s understand this through an example, consider there’s a company which has a user base in India as well as in the US. Let us see how we will choose the region for this use case : So, with reference to the above figure the regions to choose between are, Mumbai and North Virginia. Now let us first compare the pricing, you have hourly prices, which can be converted to your per month figure. Here North Virginia emerges as a winner. But, pricing cannot be the only parameter to consider. Performance should also be kept in mind hence, let’s look at latency as well. Latency basically is the time that a server takes to respond to your requests i.e the response time. North Virginia wins again! So concluding, North Virginia should be chosen for this use case. 13. Is one Elastic IP address enough for every instance that I have running? Answer: Depends! Every instance comes with its own private and public address. The private address is associated exclusively with the instance and is returned to Amazon EC2 only when it is stopped or terminated. Similarly, the public address is associated exclusively with the instance until it is stopped or terminated. However, this can be replaced by the Elastic IP address, which stays with the instance as long as the user doesn’t manually detach it. But what if you are hosting multiple websites on your EC2 server, in that case, you may require more than one Elastic IP address. 14. How can you speed up data transfer in Snowball? Answer: The data transfer can be increased in the following way: By performing multiple copy operations at one time i.e. if the workstation is powerful enough, you can initiate multiple cp commands each from different terminals, on the same Snowball device. Copying from multiple workstations to the same snowball. Transferring large files or by creating a batch of small file, this will reduce the encryption overhead. Eliminating unnecessary hops i.e. make a setup where the source machine(s) and the snowball are the only machines active on the switch being used, this can hugely improve performance. 15. When do you need to move data over long distances using the internet, for instance across countries or continents to your Amazon S3 bucket, which method or service will you use? Answer: You would not use Snowball, because for now, the snowball service does not support cross-region data transfer, and since, we are transferring across countries, Snowball cannot be used. aws Online Training Institute Acceleration shall be the right choice here as it throttles your data transfer with the use of optimized network paths and Amazon’s content delivery network to 300% compared to normal data transfer speed. 16. Can I connect my corporate data center to the Amazon Cloud? Answer: Yes, you can do this by establishing a VPN(Virtual Private Network) connection between your company’s network and your VPC (Virtual Private Cloud), this will allow you to interact with your EC2 instances as if they were within your existing network 17. In CloudFront what happens when content is NOT present at an Edge location and a request is made to it? Answer: CloudFront is a content delivery system, which caches data to the nearest edge location from the user, to reduce latency. If data is not present at an edge location, the first time the data may get transferred from the original server, but from the next time, it will be served from the cached edge. 18. If I’m using Amazon CloudFront, can I use Direct Connect to transfer objects from my own data center? Answer: Yes. Amazon CloudFront supports custom origins including origins from outside of AWS. With AWS Direct Connect, you will be charged with the respective data transfer rates. 19. If my AWS Direct Connect fails, will I lose my connectivity? Answer: If a backup AWS Direct connect has been configured, in the event of a failure it will switch over to the second one. It is recommended to enable Bidirectional Forwarding Detection (BFD) when configuring your connections to ensure faster detection and failover. On the other hand, if you have configured a backup IPsec VPN connection instead, all VPC traffic will failover to the backup VPN connection automatically. Traffic to/from public resources such as Amazon S3 will be routed over the Internet. If you do not have a backup AWS Direct Connect link or an IPsec VPN link, then Amazon VPC traffic will be dropped in the event of a failure. 20. If I launch a standby RDS instance, will it be in the same Availability Zone as my primary? Answer: No, since the purpose of having a standby instance is to avoid an infrastructure failure (if it happens), therefore the standby instance is stored in a different availability zone, which is a physically different independent infrastructure. 21. When would I prefer Provisioned IOPS over Standard RDS storage? Answer: Provisioned IOPS deliver high IO rates but on the other hand it is expensive as well. Batch processing workloads do not require manual intervention they enable full utilization of systems, therefore a provisioned IOPS will be preferred for the batch-oriented workload. 22. How is Amazon RDS, DynamoDB and Redshift different? Answer: Amazon RDS is a database management service for relational databases, it manages patching, upgrading, backing up of data, etc. of databases for you without your intervention. RDS is a Db management service for structured data only. DynamoDB, on the other hand, is a NoSQL database service, NoSQL deals with unstructured data. Redshift is an entirely different service, it is a data warehouse product and is used in data analysis. 23. If I am running my DB Instance as a Multi-AZ deployment, can I use the standby DB Instance for reading or write operations along with primary DB instance? Answer: No, Standby DB instance cannot be used with primary DB instance in parallel, as the former is solely used for standby purposes, it cannot be used unless the primary instance goes down. 24. Can I run more than one DB instance for Amazon RDS for free? Answer: Yes. You can run more than one Single-AZ Micro database instance, that too for free! However, any use exceeding 750 instance hours, across all Amazon RDS Single-AZ Micro DB instances, across all eligible database engines and regions, will be billed at standard Amazon RDS prices. For example: if you run two Single-AZ Micro DB instances for 400 hours each in a single month, you will accumulate 800 instance hours of usage, of which 750 hours will be free. You will be billed for the remaining 50 hours at the standard Amazon RDS price. 25. Which AWS services will you use to collect and process e-commerce data for near real-time analysis? Answer: DynamoDB is a fully managed NoSQL database service. DynamoDB, therefore, can be fed any type of unstructured data, which can be data from e-commerce websites as well, and later, an analysis can be done on them using Amazon Redshift. We are not using Elastic MapReduce since a near-real-time analysis is needed. 26. Can I retrieve only a specific element of the data, if I have a nested JSON data in DynamoDB? Answer: Yes. When using the GetItem, BatchGetItem, Query or Scan APIs, you can define a Projection Expression to determine which attributes should be retrieved from the table. Those attributes can include scalars, sets, or elements of a JSON document. 27. What happens to my backups and DB Snapshots if I delete my DB Instance? Answer: When you delete a DB instance, you have an option of creating a final DB snapshot, if you do that you can restore your database from that snapshot. RDS retains this user-created DB snapshot along with all other manually created DB snapshots after the instance is deleted, also automated backups are deleted and only manually created DB Snapshots are retained. 28. How can I load my data to Amazon Redshift from different data sources like Amazon RDS, Amazon DynamoDB and Amazon EC2? Answer: You can load the data in the following two ways: You can use the COPY command to load data in parallel directly to Amazon Redshift from Amazon EMR, Amazon DynamoDB, or any SSH-enabled host. AWS Data Pipeline provides a high performance, reliable, fault-tolerant solution to load data from a variety of AWS data sources. You can use the AWS Data Pipeline to specify the data source, desired data transformations, and then execute a pre-written import script to load your data into Amazon Redshift. 29. Suppose you have an application where you have to render images and also do some general computing. From the following services which service will best fit your need? Answer: You will choose an application load balancer, since it supports path-based routing, which means it can take decisions based on the URL, therefore if your task needs image rendering it will route it to a different instance, and for general computing, it will route it to a different instance. 30. What is the difference between Scalability and Elasticity? Answer: Scalability is the ability of a system to increase its hardware resources to handle the increase in demand. It can be done by increasing the hardware specifications or increasing the processing nodes. Elasticity is the ability of a system to handle the increase in the workload by adding additional hardware resources when the demand increases(same as scaling) but also rolling back the scaled resources when the resources are no longer needed. This is particularly helpful in Cloud environments, where a pay per use model is followed. 31. How will you change the instance type for instances which are running in your application tier and are using Auto Scaling? Where will you change it from the following areas? Answer: Autoscaling tags configuration, is used to attach metadata to your instances, to change the instance type you have to use auto-scaling launch configuration. 32. When should I use a Classic Load Balancer and when should I use an Application load balancer? Answer: A Classic Load Balancer is ideal for simple load balancing of traffic across multiple EC2 instances, while an Application Load Balancer is ideal for microservices or container-based architectures where there is a need to route traffic to multiple services or load balance across multiple ports on the same EC2 instance. 33. What does Connection draining do? Answer: Connection draining is a service under ELB which constantly monitors the health of the instances. If any instance fails a health check or if any instance has to be patched with a software update, it pulls all the traffic from that instance and reroutes them to other instances. 34. When an instance is unhealthy, it is terminated and replaced with a new one, which of the following services does that? Answer: When ELB detects that an instance is unhealthy, it starts routing incoming traffic to other healthy instances in the region. If all the instances in a region becomes unhealthy, and if you have instances in some other availability zone/region, your traffic is directed to them. Once your instances become healthy again, they are re-routed back to the original instances. 35. What are lifecycle hooks used for in AutoScaling? Answer: Lifecycle hooks are used for putting wait time before any lifecycle action i.e launching or terminating an instance happens. The purpose of this wait time can be anything from extracting log files before terminating an instance or installing the necessary software in an instance before launching it. 36. A user has set up an Auto Scaling group. Due to some issue the group has failed to launch a single instance for more than 24 hours. What will happen to Auto Scaling in this condition? Answer: Auto Scaling allows you to suspend and then resume one or more of the Auto Scaling processes in your Auto Scaling group. This can be very useful when you want to investigate a configuration problem or other issue with your web application, and then make changes to your application, without triggering the Auto Scaling process. 37. What happens if CloudTrail is turned on for my account but my Amazon S3 bucket is not configured with the correct policy? Answer: CloudTrail files are delivered according to S3 bucket policies. If the bucket is not configured or is misconfigured, CloudTrail might not be able to deliver the log files. 38. How do I transfer my existing domain name registration to Amazon Route 53 without disrupting my existing web traffic? Answer: You will need to get a list of the DNS record data for your domain name first, it is generally available in the form of a “zone file” that you can get from your existing DNS provider. Once you receive the DNS record data, you can use Route 53’s Management Console or simple web-services interface to create a hosted zone that will store your DNS records for your domain name and follow its transfer process. It also includes steps such as updating the nameservers for your domain name to the ones associated with your hosted zone. For completing the process you have to contact the registrar with whom you registered your domain name and follow the transfer process. As soon as your registrar propagates the new name server delegations, your DNS queries will start to get answered. 39. How is AWS Elastic Beanstalk different than AWS OpsWorks? Answer: AWS Elastic Beanstalk is an application management platform while OpsWorks is a configuration management platform. BeanStalk is an easy to use service which is used for deploying and scaling web applications developed with Java, .Net, PHP, Node.js, Python, Ruby, Go and Docker. Customers upload their code and Elastic Beanstalk automatically handles the deployment. The application will be ready to use without any infrastructure or resource configuration. In contrast, AWS Opsworks is an integrated configuration management platform for IT administrators or DevOps engineers who want a high degree of customization and control over operations. 40. What happens if my application stops responding to requests in beanstalk? Answer: AWS Beanstalk applications have a system in place for avoiding failures in the underlying infrastructure. If an Amazon EC2 instance fails for any reason, Beanstalk will use Auto Scaling to automatically launch a new instance. Beanstalk can also detect if your application is not responding on the custom link, even though the infrastructure appears healthy, it will be logged as an environmental event( e.g a bad version was deployed) so you can take an appropriate action. 41. How is AWS OpsWorks different than AWS CloudFormation? Answer: OpsWorks and CloudFormation both support application modeling, deployment, configuration, management, and related activities. Both support a wide variety of architectural patterns, from simple web applications to highly complex applications. AWS OpsWorks and AWS CloudFormation differ in abstraction level and areas of focus. AWS CloudFormation is a building block service which enables the customer to manage almost any AWS resource via JSON-based domain specific language. It provides foundational capabilities for the full breadth of AWS, without prescribing a particular model for development and operations. Customers define templates and use them to provision and manage AWS resources, operating systems and application code. In contrast, AWS OpsWorks is a higher level service that focuses on providing highly productive and reliable DevOps experiences for IT administrators and ops-minded developers. To do this, AWS OpsWorks employs a configuration management model based on concepts such as stacks and layers and provides integrated experiences for key activities like deployment, monitoring, auto-scaling, and automation. Compared to AWS CloudFormation, AWS OpsWorks supports a narrower range of application-oriented AWS resource types including Amazon EC2 instances, Amazon EBS volumes, Elastic IPs, and Amazon CloudWatch metrics. 42. What happens when one of the resources in a stack cannot be created successfully in AWS OpsWorks? Answer: When an event like this occurs, the “automatic rollback on error” feature is enabled, which causes all the AWS resources which were created successfully till the point where the error occurred to be deleted. This is helpful since it does not leave behind any erroneous data, it ensures the fact that stacks are either created fully or not created at all. It is useful in events where you may accidentally exceed your limit of the no. of Elastic IP addresses or maybe you may not have access to an EC2 AMI that you are trying to run etc. 43. What automation tools can you use to spin up servers? Answer: Any of the following tools can be used: Roll-your-own scripts, and use the AWS API tools. Such scripts could be written in bash, Perl or other language of your choice. Use a configuration management and provisioning tool like puppet or its successor Opscode Chef. You can also use a tool like Scalr. Use a managed solution such as Rightscale. 44. What are the differences among Spot instance, On-Demand instance, and Reserved Instances? Answer: All these instances are models for pricing. Spot instance powers the customers to acquire compute capacity without having any upfront commitment. The hourly rate of Spot instance is usually higher than the speed of the On-Demand instance. Both in Spot instance and On-Demand instance, the users, do not commit to any particular duration. However, there is a fixed period to which the users have to stick in the Reserved Instance. Learn From Real-Time Experts 45. What are the network performance parameters that you should be expecting when you launch Instances in a cluster placement group? Answer: The network performance depends on two elements: Instance type Network performance specification One should expect the following things when instances are launched in a cluster placement group: 10 Gbps in a single flow 20 Gbps in full-duplex Outside of the placement unit, the network traffic will be limited to 5 Gbps. AWS Interview Questions and Answers 46. Is it enough to have only one Elastic IP for all the instances that I have been running? Answer: There is no definite answer to this question because it depends on the instance. The instances have their public and private addresses. Both the private and the public address remains associated with the Amazon EC2 and instance respectively until it is terminated or stopped. These addresses can be replaced with Elastic address, and it remains with the Instance until the user does not manually detach it. If multiple websites are being hosted on the EC2 server, more than one Elastic IP will be required. 47. Why do you make subnets? Answer: Subnets are created to utilize the networks efficiently that have a significant number of hosts. Managing a network, which is filled with a large number of hosts is very tedious. When the network is divided into subnets, it becomes easier to manage the hosts. 48. What is the difference between Elasticity and Scalability? Answer: Scalability refers to the ability of the system to increase and improve its hardware resources so that it can meet the growth in demand. Scalability can be achieved by increasing: 1. Hardware specifications 2. Processing nodes Elasticity refers to the ability of the system to manage the growth in workload by increasing the hardware resources when the demands are high. However, when the demand is low, the additional hardware resources have to be rolled back. Elasticity becomes helpful when one is dealing with Cloud environments. 49. I want to transfer my present domain name registration to the Amazon Route 53 without disturbing or disrupting my current web traffic. What should I do to achieve this? Answer: Follow the steps given below to transfer your domain name registration to Amazon route 53: Step 1: Get a list of the DNS record data, which is available for your domain name. Step 2: Use Route 53 Management Console to create a hosted zone, which will be storing the DNS records of your domain and then start the transfer process. Step 3: Contact with the registrar with whom you have registered the domain name. Follow the transfer process. Your DNS queries will be answered when the registrar propagates the requirement of the new name server delegations. 50. What automation tools will you spin up servers? Answer: The following tools can be used to spin up servers: Roll-your-own scripts tool AWS API tools Configuration management and provisioning tool (Example, Opscode Chef) Managed solution tool (Example, Rightscale) The questions mentioned above are frequently asked in the AWS interview. Brush up your knowledge and try to answer these questions without actually reading the answers to know about the depth of your knowledge. If you could respond to these above-listed questions without going through the answers given in this post, then you are already standing at a high-level and may proceed to the next level to deal with the much complex questionnaire. In the other case, please brush up your skills and knowledge and try to answer these questions again. Salesforce Apex Interview Questions And Answers Pdf 1. What is the role hierarchy? Answer: Role Hierarchy states that a higher hierarchy person can see lower hierarchy person records. 2. One company is having some branches and all branches having different departments. So, now I want to display all departments from all branches in a single visualforce page? Answer: Using subquery we can fetch all the required data and we can display it on the VF page. 3. Will, the inner class inherits the sharing properties of an outer class? Answer: No, Inner classes do not inherit the sharing setting from their container class. Classes inherit this setting from a parent class when one class extends or implements another. 4. In which object workflows are stored? Answer: Workflow 5. I have an OWD which is read-only, how all can access my data and I want to give read-write access to a particular record to them, how can I do that? Answer: All users can just Read the record. Create a Sharing Rule to give Read/Write access with “Based on the criteria” Sharing Rules. 6. In an apex invocation how many methods that we can write as future annotations? Answer: 10 7. What is the difference between role hierarchy and sharing rules ? will both do the same permissions? Answer: Role Hierarchy states that a higher hierarchy person can see lower hierarchy person records. Sharing Rule is used to extending the Role Hierarchy. 8. Where Products are added? Answer: Product2 9. Can I have a constructor with parameters in apex? Answer: You do not need to write a constructor for every class. If a class does not have a user-defined constructor, a default, no-argument, public constructor is used. … In Apex, a constructor can be overloaded, that is, there can be more than one constructor for a class, each having different parameters. 10. In how many ways we can invoke flows? Answer: We can invoke flows from different ways From Apex From Process Builder Directly from the button invocation 11. Can we create 2 opportunities while the Lead conversion? Answer: Yes using Apex code. 12. Is there a way to setup continous integration for apex tests? Answer: There are a couple of decent Dreamforce presentations here: Team Development: Possible, Probable, and Painless and Continuous Integration in the Cloud. We ran into some issues with this in practice and there was no way to get true automation (i.e., set it and forget it). We were also set it up with Selenium. Here were the issues that I remember. Some features aren’t supported in the metadata API and cannot be moved via the ant migration. If you have any unit tests that work with those features, you have to manually work on your CI org. Deletions are harder to maintain. You have to manually update and apply a destructiveChanges.xml file or replicate the deletion in the CI org. We ran into a situation where some metadata XML files had ‘invalid’ data in them. The suggested solution was to build a post-checkout script that manipulates the offending XMLs into valid XML. Not ideal. On projects, we wanted to track just our changes and push out just our changes in source control. In theory, this would allow much easier rebaselining. This would have required more manual maintenance of XML files (e.g., 2 new fields added on Account and only want to push those 2 fields not all (*) fields). My conclusion is that it is worth doing if you can get it set up, but if you are working on shorter-term projects and don’t have a decent amount of time budgeted in for it, it probably isn’t worth setting up. 13. User1 is associated with profile “P”. If I create a permission set and assign it to User1, now will the Permission sets which we assigned overrides the existing profile “P”? Answer: No. The permission set is always used for extending the profile permission. It’s not used to override the Profile permissions. 14. Can we invoke flows from apex? Answer: Yes, We can call flows from the apex. 15. Is there is an alternative for the “ActionPoller”? Answer: Using SetTimeout in Javascript and calling the apex method using apex: action function. 16. What are the recommended ways to refactor in Apex? Answer: I use the second method. After refactoring, I select the ‘src’ folder, use File Search/Replace and all the changes are made and saved to the server in one go. 17. In which object all salesforce objects are saved? Answer: subject 18. Write a query below? Answer: I have 1 parent(account) and 1 child(contact), how will you get F.name, L.name from (learn salesforce online) child and email from the account when Organization name in an account is “CTS”? SELECT Email, (SELECT F.Name, L.Name FROM Contacts) WHERE Name = ‘CTS’. 19. What is External id? primary id? Answer: The external id is unique to an external application. The primary id is unique to the internal organization. 20. What are the different types of clouds in SF? Answer: Sales cloud Service cloud Note: Browse Latest salesforce interview questions and salesforce tutorials. Here you can check Salesforce Training details and salesforce Learning videos for self learning. Contact +91 988 502 2027 for more information. All Salesforce Interview Questions Salesforce Cpq Interview Questions READ MORE » April 14, 2021 No Comments Salesforce Interview Questions On Integration READ MORE » February 11, 2021 No Comments Salesforce Trigger Interview Questions READ MORE » February 11, 2021 No Comments salesforce interview questions Business Analyst Interview Questions And Answers Pdf READ MORE » December 20, 2018 No Comments salesforce interview questions Business Analyst Interview Questions And Answers READ MORE » December 19, 2018 No Comments salesforce interview questions Interview Questions For Business Analyst READ MORE » December 19, 2018 No Comments All Questions Mentor Based Training 40 Classes | 80+ Challenges 9,999/- Experienced Faculty Real-time Scenarios Free Bundle Access Course Future Updates Sample CV/Resume Interview Q&A Complimentary Materials Check Videos Salesforce Apex Interview Questions And Answers 1. What are the access modifiers in the apex? Answer: If you do not specify an access modifier, the method or variable is private. This means that the method or variable is visible to any inner classes in the defining Apex class, and to the classes that extend the defining Apex class. 2. What are the reference variables in apex? Answer: Passing Parameters By Reference and By Value in Apex. … “In Apex, all primitive data type arguments, such as Integer or String, are passed into methods by value. This means that any changes to the arguments exist only within the scope of the method. When the method returns, the changes to the arguments are lost. 3. In which object Roles are stored? Answer: UserRole 4. What is the on-Demand process? Answer: The on-demand process is nothing but “pay for what you use” policy. We can subscribe to what we want and pay-as-you-go model. 5. Will the Flow supports the nullification mechanism? Answer: Yes , flows support bulk records processing also. 6. If you organization Workflow’s limit is over and if you want to write a workflow immediately and it critical, what will you do? Answer: 1. De-activate any workflows and create it using trigger and then do the new workflow. or 2. Go for Schedule apex or trigger to achieve this workflow. 7. What is an alternative for workflow? Answer: Process Builder or Flows or Trigger or Schedule apex or 8. What is the use of isNew()? Answer: Checks whether the record is newly created. 9. What is the difference between List and Set? Answer: Another significant difference between List and Set in Java is order. A list is an Ordered Collection while Set is an unordered Collection. List maintains the insertion order of elements, which means any element which is inserted before will go on the lower index than any element which is inserted after. 10. Data loader? and which format it will support? Answer: Data loader is a tool to manage bulk data. It will support the .csv format of Excel. 11. What are the Disadvantages of using Batch Apex processing? Answer: Disadvantages of batch processing: It runs asynchronously, which can make it hard to troubleshoot without some coded debugging, logging, and persistent stateful reporting. It also means that it’s queued to run, which may cause delays in starting. There’s a limit of 5 batches in play at any time, which makes it tricky to start batches from triggers unless you are checking limits. If you need access within execute() to some large part of the full dataset being iterated, this is not available. Each execution-only has access to whatever is passed to it, although you can persist class variables by implementing Database.stateful. There is still a (fairly large) limit on total Heap size for the entire batch run, which means that some very complex logic may run over, and need to be broken into separate batches. 12. How many users have you supported? Answer: Number of users in the Salesforce organization. It helps the recruiter to understand your scalability. 13. In which object all email templates are saved? Answer: email template 14. What is Salesforce sites? Answer: Used to show data from our organization for public view. 15. Explain The Apex Data Manipulation Language (DML) Operations? Answer: Use data manipulation language (DML) operations to insert, update, delete, and restore data in a database. You can execute DML operations using two different forms: Apex DML statements, such as: insertSObject[] Apex DML database methods, such as: Database.SaveResult[] result = Database.Insert(SObject[]) While most DML operations are available in either form, some exist only in one form or the other. The different DML operation forms enable different types of exception processing: Use DML statements if you want any error that occurs during bulk DML processing to be thrown as an Apex exception that immediately interrupts control flow (by using try. . .catch blocks). This behavior is similar to the way exceptions are handled in most database procedural languages. Use DML database methods if you want to allow the partial success of a bulk DML operation: If a record fails, the remainder of the DML operation can still succeed. Your application can then inspect the rejected records and possibly retry the operation. When using this form, you can write code that never throws DML exception errors. Instead, your code can use the appropriate results array to judge success or failure. Note that DML database methods also include a syntax that supports thrown exceptions, similar to DML statements. 16. In which object all Account Team Members are added? Answer:AccountTeamMember 17. Auto-response rules and Escalation rules(for which objects are mandatory)? Answer: Case and Lead. 18. What is Documenting Salesforce.com in Apex class files? Answer: I have used apexDoc for a while and we are starting to roll it out more fully for our use at my organization. It is open source software and so you could always contribute some updates for it: What features are you wanting to add to it that it doesn’t have (just to give a flavor)? In answer to your questions: I don’t think anybody has successfully managed to do this. There is an idea of the ideas exchange for it to be done but it seems to gain very little support. Theoretically, it should be pretty easy as the apex is a Java DSL. Have you tried running Doxygen and if so what errors does it throw up? I use Apex Doc to generate some basic output and then have a little script tied in to copy across custom CSS and things. It isn’t perfect but it does the small amount we need at the moment. I believe the IDE is being open-sourced at some time in which case I would imagine the antlr grammar file would become available which may help you out. I know it is not really an answer for what you wanted to hear per se, but sadly it’s all we have atm (and I would love a nicer documentation generator!!) Learn Salesforce Training Online From Real-Time Experts 19. In which object all Opportunity Team Members are added? Answer: OpportunityTeamMember 20. Difference between REST and SOAP AP I’S? Answer: Varies on records that can be handled. 21. In Which object all Apex Pages are stored? Answer: ApexPage 22. What are the uses of the tag? Answer: A component that provides support for invoking controller action methods directly from JavaScript code using an AJAX request. A component must be a child of a component. Because binding between the caller and is done based on parameter order, ensure that the order is matched by the caller’s argument list. Unlike, which only provides support for invoking controller action methods from other Visualforce components, defines a new JavaScript function which can then be called from within a block of JavaScript code. Note: Beginning with API version 23 you can’t place inside an iteration component and so on. Put them after the iteration component, and inside the iteration put a normal JavaScript function that calls it. This tag supports the following attributes: Action: The action method invoked when the action function is called by a JavaScript event elsewhere in the page markup. Use merge-field syntax to reference the method. For example, action=”{!save}” references the save method in the controller. If an action is not specified, the page simply refreshes. Focus: The ID of the component that is in focus after the AJAX request completes. Id: An identifier that allows the action function component to be referenced by other components in the page. Immediate: A Boolean value that specifies whether the action associated with this component should happen immediately, without processing any validation rules associated with the fields on the page. If set to true, the action happens immediately and validation rules are skipped. If not specified, this value defaults to false. Name: The name of the JavaScript function that, when invoked elsewhere in the page markup, causes the method specified by the action attribute to execute. When the action method completes, the components specified by the reRender attribute are refreshed. Onbeforedomupdate: The JavaScript invoked when the onbeforedomupdate event occurs–that is when the AJAX request has been processed, but before the browser’s DOM is updated. incomplete: The JavaScript invoked when the result of an AJAX update request completes on the client. Rendered: A Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. ReRender: The ID of one or more components that are redrawn when the result of the action method returns to the client. This value can be a single ID, a comma-separated list of IDs, or a merge field expression for a list or collection of IDs. Status: The ID of an associated component that displays the status of an AJAX update request. See the action status component. timeout: The amount of time (in milliseconds) before an AJAX update request should time out. 23. What is creating a debug log for users? Answer: Track code. 24. What are Workarounds for Missing Apex Time?format() Instance Method? Answer: You could just split the DateTime format() result on the first space – does that give you what you’re looking for? public String myDateFormat(DateTime dt) { String[] parts = dt.format().split(‘ ‘); return (parts.size() == 3) ? (parts[1] + ‘ ‘ + parts[2]) : parts[1]; produces 6:38 PM for me in English (United States), and 18:42 in French(France). UPDATE: As to logic points out, the above method is not very robust – some locales may include spaces in the date or time portion of the format, and the ordering is not consistent. This second attempt assumes that the date and time are separated by zero or more spaces, but handles spaces within the two portions, and either ordering of date and time. The only assumption made is that the formatted Date is contained within the formatted Time: public String my date format(DateTime dt) { return dt.format().replace(dt.date().format(), ”).trim(); It seems to work fine for Hebrew, Vietnamese & Korean, as well as English and French. 25. How cases are created? Answer: Email to Case and Web to Case 26. What is the difference between With Sharing and Without Sharing? Answer: For example, if a method is defined in a class declared with sharing is called by a class declared without sharing, the method will execute with sharing rules enforced. … For example, if the class is called by another class that has sharing enforced, then sharing is enforced for the called class. 27. What is after undelete? Answer: While retrieving from the recycling bin 28. In which object all Approval process are stored? Answer: Approval 29. Is there an average method for apex math? Answer: Unfortunately the standard math methods only include simpler operations (i.e. those that work on a single, or two values), so it looks as though you’ll have to roll your own method. Of course, the number of script statements executed will be proportional to the length of the list, so of the lists are ever of a fixed size it could be worth using a macro to generate the addition part for you: Int sum = i[0] + i[1] + … i[n]; Doing so would only count for one statement, but you’ll only need this if governor limits are of concern which is often not a worry. If governor limits aren’t an issue you could create a function along these lines: Skip code block Integer[] myInts = new Integer[]{1, 2, 3, 4, 5, 6, 7}; Integer total = 0; Double Avg; for (Integer i : myInts) { total += i; Avg = Double.valueOf(total) / myInts.size(); return Avg; 30. Will Trigger.new supports —>Insert, Will Trigger.Delete supports —>Delete? Answer: Yes. 31. What is a constructor? Answer: A constructor is a special method of a class or structure in object-oriented programming that initializes an object of that type. A constructor is an instance method that usually has the same name as the class, and can be used to set the values of the members of an object, either to default or to user-defined values. 32. What is the Inline visualforce page? Answer: Having the page on pagelayout. 33. What is the Grammar for creating an Apex parser? Answer: Keep an eye on Apex tooling API, which is used in the Developer console. This is supposed to be released to public access soon. 34. If his a child is a mandatory field in lookup and I m deleting Parent, will the child get deleted? Answer: No. 35. What is the use of the static variables? Answer: Static variables are used when only one copy of the variable is required. so if you declare variable inside the method there is no use of such variable it’s become local to function only.. Variables declared static are commonly shared across all instances of a class. 36. Junction object? when will we use it? If we delete the junction object what will happen? Answer: For many to many relationships. 37. Does ‘default value’ do anything if the object is created through Apex? Answer: New feature coming in the next release: Foo__c f = Foo__c.sobjecttype.newSObject( record typed, // can be null true); // loadDefaultValues 38. Can we have V.F pages in page layout? Answer: Yes. 39. What are Subjects? Answer: An sObject is any object that can be stored in the Force.com platform database. These are not objects in the sense of instances of Apex classes; rather, they are representations of data that has or will be persisted. sObject is a generic abstract type that corresponds to any persisted object type. 40. How to create a standard object as a child to custom object(which is not possible thru standard away process, have to bypass this restriction)? Answer: Create Lookup and make the lookup field mandatory. 41. Detect the current Logging Level in Apex? Answer: Unfortunately, I don’t think there is a way to check the current logging level in APEX. 42. In a visual force page the save should ensure the data to be stored in current object as well as associated child object? Answer: We have to use a Database.SavePoint and Database.Rollback for this situation. 43. What is Map in apex? Answer: A map is a collection of key-value pairs where each unique key maps to a single value. Keys and values can be any data type: primitive types, collections, subjects, user-defined types, and built-in Apex types. 44. What is the audit field, what is the purpose of the audit field? Answer: Created By, Created Date, Last Modified By, and Last Modified Date are audit fields. Used to track when the changes are done to the records. 45. Call Apex class method on the fly (dynamically)? Answer: While you can instantiate a class based on its name using the Type system class, you can’t dynamically locate a method and execute it. The best that you can do is to dynamically create an instance of a class that implements an interface and executes one of the methods on the interface. There’s more information on the Type class and an example in the : Apex Developer’s Guide 46. What do we need to do for extending the limit of creating only 2 M-D relationships for a custom object? Answer: Create Lookup and make the lookup field mandatory. 47. Can we have duplicate Keys in Map? Answer: You can’t have duplicate keys in a Map. You can rather create a Map, or if you can, use Guava’s Multimap. And then you can get the java.util.Map using the Multimap#asMap() method. 48. How to write javascript code for the save button? Answer: We have to create the custom button and in that custom button, we have to write Javascript code. 49. How many objects we can store on the list? Answer: You can store only one Object at a time. But you can store as many as records or instance of an object till you don’t hit Salesforce Heap size limit which is 6 MB for Developer Edition. So it will depend on data you are storing in List like how many fields and type of data you want to store in that list. 50. What are the attributes of the apex tag? Answer: Attribute tag is used in creating components. ( Salesforce Online Training) s Salesforce Apex Interview Questions And Answers Pdf Salesforce is the world’s best CRM service provider. They have higher than 40% business share in the Cloud CRM space and manages overall CRM scope with a market percentage of 19.7%. They were ranked the world’s #1 CRM for two following-to-back years and if the forecasted growth of Salesforce is anything to go by, the demand for experts with Salesforce training is only continuing to exponentially progress. This is everywhere Salesforce starts the design, and that is the reason to write a post on the popular frequently supplicated Salesforce interview questions. 1. What is the use of interfaces(in apex classes)? Answer: An interface resembles a class in which none of the strategies have been executed—the technique marks are there, yet the body of every strategy is void. To utilize an interface, another class must actualize it by giving a body to the greater part of the techniques contained in the interface. Interfaces can give a layer of reflection to your code. They isolate the particular execution of a technique from the announcement for that strategy. Thusly you can have distinctive usage of a strategy in view of your particular application. 2. Can you please give some information about Implicit and Explicit Invocation of apex? Answer: Triggers: Implicit Javascript remoting: Explicit 3. In Which object all Apex Triggers are stored? Answer: ApexTrigger 4. What is an abstract class? Answer: Abstract classes will be classes that contain at least one dynamic strategies. A conceptual technique is a strategy that is pronounced however contains no usage. Unique classes may not be instantiated, and expect subclasses to give usage to the theoretical techniques. 5. What’s the best way to check if person accounts are enabled via Apex Code? Answer: I’ve found two methods to accomplish this. Endeavor to get to the is Person Account property on an Account and catch any exemption that happens if that property is absent. In the event that a special case is produced then individual records are handicapped. Else, they’re empowered. To abstain from making individual records required for the bundle you allocate the Account protest a subject and utilize subject. Get (‘is Person Account’) as opposed to getting to that property straightforwardly on the Account question This method takes ~3.5ms and negligible heap space in my testing. Skip code block Test to see if person accounts are enabled. public Boolean personAccountsEnabled() Try to use the isPersonAccount field. subject test object = new Account(); test Object.get( ‘isPersonAccount’ ); If we got here without an exception, return true. return true; catch( Exception ex ) An exception was generated trying to access the isPersonAccount field so person accounts aren’t enabled; return false. return false; Use the account meta-data to check to see if the isPersonAccount field exists. I think this is a more elegant method but it executes a describe call which counts towards your (sap training) governor limits. It’s also slightly slower and uses a lot more heap space. This method takes ~7ms and ~100KB of heap space in my testing. Check to see if person accounts are enabled. public Boolean personAccountsEnabled() Describe the Account object to get a map of all fields then check to see if the map contains the field ‘isPersonAccount’ return Schema.subject Type.Account.fields.getMap().containsKey( ‘isPersonAccount’ ); 6. How to insert value to a parent and child element at the same time? Answer: Use triggers. 7. What are the setter and getter methods? Answer: Mutator strategy. … They are likewise generally known as setter strategies. Frequently a setter is joined by a getter (otherwise called an accessor), which restores the estimation of the private part factor. The mutator technique is regularly utilized as a part of question situated programming, with regards to the rule of exemplification. 8. How to make pick-list as required (thru javascript)? Answer: We need to make a custom catch and in that custom catch, we need to compose JavaScript code to check whether the picklist esteem is invalid. 9. Can’t Deploy Due to Errors in 3rd Party Packages? Answer: It was already conceivable to introduce oversaw bundles and Ignore APEX Test Errors this isn’t the situation any longer. You are likely must uninstall them on the off chance that you need to convey from Sandbox to creation and reinstall them In the event that it’s Milestones PM (the bundle) is you can most likely get an unmanaged variant to work with and settle the bugs. UPDATE: It would appear that you are utilizing the unmanaged bundle. So I think on the off chance that you would prefer not to uninstall before going to generate you must fix those blunders physically by settling the code. Sadly, SFDC test strategies don’t live in a total vacuum where you can run tests against your organization without knocking other code, notwithstanding when you go to convey. Salesforce Training Free Demo 10. What is the difference between Ajax and ActionPoller? Answer: ActionPolleris a clock that sends an AJAX refresh demand to the server as indicated by a period interim that you determine 11. How do you refer to current page id in apex? Answer: If you want to retrieve id in a visauflrorc page then you can retrieve it using a standard controller. for ex: public myControllerExtension(ApexPages.StandardController stdController) { this.acct = (Account)stdController.getRecord(); 12. When a case is generated by a user through the web to case, how or where a developer will provide solution case arise? Answer: Email notice through the trigger or through email ready Workflow run the show. 13. What is the page reference? Answer: A Page Reference is a reference to an instantiation of a page. Among different characteristics, Page References comprise of a URL and an arrangement of inquiry parameter names and qualities. 14. How Can I Tell the Day of the Week of a Date? Answer: Formulas: There isn’t a worked incapacity to do this for you, yet you can make sense of it by checking the days since date you know. Here’s the idea: I realize that June 29, 1985, was a Saturday. In case I’m endeavoring to make sense of the day of the seven day stretch of July 9 of that year, I subtract the dates to determine the number of days (10) and then use modular division to figure to remove all the multiples of 7. The remainder is the number of days after Saturday (1 = Sunday, 2 = Monday, etc.) and you can use that number in your logic: MOD(DATEVALUE( Date_Field__c ) – DATE(1985,7,1),7) Apex Code You could do the same thing with time deltas, but you can also use the poorly documented at the time.format() function: Cast the Date variable into a DateTime DateTime DateTime = (DateTime) myDate; String dayOfWeek = my DateTime.format(‘E’); dayOfWeek is Sun, Mon, Tue, etc. 15. I have added a string ‘updated’ to all users in Account object through the batch apex, now how to remove that ‘updated’ Answer: Run the below code in the developer console List acc =[SELECT Id, Name FROM Account]; for(Account a: acc) a.Name = a.Name.removeEnd(‘Updated’); update a; 16. How do you pass the parameters from one apex class to another to another? Answer: You can simply pass the parameters through the URL. say you are redirecting from one VF page to another string value = ‘your param value’; string url; url = ‘/apex/VF_Page_Name?param1=’ + value; PageReference pageRef = new PageReference(url); pageRef.setRedirect(true); return pageRef; Then in the controller of the VF page, you just can get the param like this String param_value = system.CurrentPageReference.GetParameters().get(‘param1 17. What are outbound messages? what it will contain? Answer: In outbound message contains the endpoint URL. 18. What is a virtual class? Answer: In protest situated programming, a virtual class is a settled inward class whose capacities and part factors can be abrogated and reclassified by subclasses of the external class. Virtual classes are closely resembling virtual capacities. 19. Can you tell me what is time-based workflow? Answer: Time Based work process will be activated at what time we characterize while making the Time-Dependent work process run the show. 20. In Data loader using upsert operation can u do update a record if that record id already exists in page and if updated that record then can u update 2records with having the same id and if not updated 2 records then what error message is given? Answer: It isn’t conceivable to refresh records with the same id in a document utilizing the upsert task. It will toss “copy ids discovered” blunder. 21. Can you give me a situation where we can your workflow rather than the trigger and vice versa? Answer: If you need to play out any activity after some activity, we can go for Workflow Rule. On the off chance that you need to play out any activity when some activity, we can go for Trigger. 22. Say About Visual force page? Answer: Using VF tags we can develop visualforce pages. 23. Let’s say I have a requirement whenever a record is created I want to insert a record on some other object? Answer: Triggers can be used for this 24. One product cost is 1000. It is stored in the invoice so once if change the cost of the product to 800 then how can I update it automatically into an invoice? Answer: We can achieve this using triggers or through the relationship among objects. 25. What is the difference between trigger.new and trigger.newmap? Answer: Trigger. New can be utilized as a part of when activities. Trigger.newMap can be utilized as a part of after embed and after and before a refresh. Take in Salesforce Training Online From Real-Time. 26. Whenever a record is inserted in contact I want to insert a record in opportunity as well, we can’t do it with workflow right how would you do it with the trigger? Answer: We can get the Account Id from the Contact and we can create an Opportunity under the Account. 27. What is overloading? Answer: Over-burdening alludes to the capacity to utilize a solitary identifier to characterize numerous techniques for a class that contrasts in their information and yield parameters. Over-burden techniques are for the most part utilized when they reasonably execute a similar undertaking yet with a somewhat unique arrangement of parameters. Over-burdening is an idea used to stay away from excess code where a similar strategy name is utilized numerous circumstances yet with an alternate arrangement of parameters. The real strategy that gets called amid runtime is settled at assemble time, along these lines maintaining a strategic distance from runtime mistakes. Over-burdening gives code lucidity, takes out many-sided quality, and upgrades runtime execution. 28. Can you tell me what is the difference between apex: action function and apex: action poller? Is there any way that we can do the same functionality of apex: action poller do? Answer: Pinnacle: ActionPoller is utilized to call an Apex technique for the interim of time indicated. Summit: Action Function is utilized to call Apex strategy from JavaScript. Utilizing set Timeout in JavaScript, we can accomplish apex: actionPoller functionalities. 29. What is the apex test execution? Answer: Executing apex test classes. 30. What is overriding? Answer: Abrogating is a protest situated programming highlight that empowers a tyke class to give diverse usage to a strategy that is as of now characterized and additionally actualized in its parent class or one of its parent classes. The overriding technique in the kid class ought to have a similar name, mark, and parameters as the one in its parent class. Superseding empowers dealing with various information writes through a uniform interface. Consequently, a bland technique could be characterized in the parent class, while every tyke class gives its particular execution to this strategy.

Comments

Popular posts from this blog

What is implicit sharing in salesforce

How to expose a salesforce apex class as Rest API